title: Orion CB does not change the value of an attribute (corrected)
body: <p><strong>UPDATE:</strong> The problem seems now to have been corrected in the "global" Orion instance.</p>
  
  <p>I try to change an attribute of an entity but it does not seem to have the
  wanted effect. The same code worked well 2 months ago, as I recall. What to do with it now?</p>
  
  <p>I have the entity <code>cie_test_1</code> with the float attribute <code>test_1</code> in the "global" Orion Broker <code>http://orion.lab.fi-ware.org:1026</code>. I understand that the intention of the broker is to propagate changing values. However, it seems that the value cannot be changed. Details of the transactions are below.</p>
  
  <p>Version information of the broker is</p>
  
  <pre><code>{ 
    "orion" : { 
      "version" : "0.19.0", 
      "uptime" : "0 d, 0 h, 2 m, 31 s", 
      "git_hash" : "1ad73b298cd261861203fbffb9c789f6ade2796d", 
      "compile_time" : "Wed Feb 11 13:00:19 CET 2015", 
      "compiled_by" : "fermin", 
      "compiled_in" : "centollo" 
    } 
  } 
  </code></pre>
  
  <h1>Transmit value request</h1>
  
  <h2>Request</h2>
  
  <pre><code>POST http://orion.lab.fi-ware.org:1026/ngsi10/contextEntities/cie_test_1/attributes/test_1
  Host: orion.lab.fi-ware.org:1026
  User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
  Accept: application/json
  Accept-Language: en-us,en;q=0.7,fi;q=0.3
  Accept-Encoding: gzip, deflate
  DNT: 0
  Content-Type: application/json; charset=UTF-8
  X-Auth-Token: &lt;my auth token&gt;
  Content-Length: 14
  Origin: null
  Connection: keep-alive
  Pragma: no-cache
  Cache-Control: no-cache
  </code></pre>
  
  <p>Payload:</p>
  
  <pre><code>{"value":"50"}
  </code></pre>
  
  <p><strong>NOTE:</strong> Attempted to set <code>value</code> = <strong>50</strong></p>
  
  <h2>Response from the Orion</h2>
  
  <pre><code>Access-Control-Allow-Headers: origin, content-type, X-Auth-Token, Tenant-ID
  Access-Control-Allow-Methods: HEAD, POST, GET, OPTIONS, DELETE
  Access-Control-Allow-Origin: *
  Connection: keep-alive
  Content-Length: 61
  Content-Type: application/json
  Date: Fri, 13 Feb 2015 07:52:29 GMT
  X-Powered-By: Express
  </code></pre>
  
  <p>Payload:</p>
  
  <pre><code>"statusCode" : {
    "code" : "200",
    "reasonPhrase" : "OK"
  }
  </code></pre>
  
  <p>Firefox browser didn't like the response:</p>
  
  <blockquote>
    <p>SyntaxError: JSON.parse: unexpected non-whitespace character after
    JSON data at line 1 column 14 of the JSON data</p>
  </blockquote>
  
  <p>Better JSON response might be:</p>
  
  <pre><code>{
    "statusCode" : {
      "code" : "200",
      "reasonPhrase" : "OK"
    }
  }
  </code></pre>
  
  <h1>Value query from the Orion</h1>
  
  <h2>Query</h2>
  
  <pre><code>GET http://orion.lab.fi-ware.org:1026/ngsi10/contextEntities/cie_test_1
  Host: orion.lab.fi-ware.org:1026
  User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
  Accept: application/json
  Accept-Language: en-us,en;q=0.7,fi;q=0.3
  Accept-Encoding: gzip, deflate
  DNT: 0
  Content-Type: application/json
  X-Auth-Token: &lt;my auth token&gt;
  Origin: null
  Connection: keep-alive
  </code></pre>
  
  <h2>Response from the Orion</h2>
  
  <pre><code>Access-Control-Allow-Headers: origin, content-type, X-Auth-Token, Tenant-ID
  Access-Control-Allow-Methods: HEAD, POST, GET, OPTIONS, DELETE
  Access-Control-Allow-Origin: *
  Connection: keep-alive
  Content-Length: 289
  Content-Type: application/json
  Date: Fri, 13 Feb 2015 10:09:27 GMT
  X-Powered-By: Express
  </code></pre>
  
  <p>Payload:</p>
  
  <pre><code>{
    "Success: {
      "contextElement" : {
        "type" : "",
        "isPattern" : "false",
        "id" : "cie_test_1",
        "attributes" : [
          {
            "name" : "test_1",
            "type" : "float",
            "value" : "10"
          }
        ]
      },
      "statusCode" : {
        "code" : "200",
        "reasonPhrase" : "OK"
      }
    }
  }
  </code></pre>
  
  <p><strong>NOTE:</strong> <code>value</code> is still <strong>10</strong></p>