{"action":"created","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2497","repository_url":"https://api.github.com/repos/telefonicaid/fiware-orion","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2497/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2497/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2497/events","html_url":"https://github.com/telefonicaid/fiware-orion/issues/2497","id":175087277,"number":2497,"title":"Compound value not returned","user":{"login":"manucarrace","id":7370473,"avatar_url":"https://avatars.githubusercontent.com/u/7370473?v=3","gravatar_id":"","url":"https://api.github.com/users/manucarrace","html_url":"https://github.com/manucarrace","followers_url":"https://api.github.com/users/manucarrace/followers","following_url":"https://api.github.com/users/manucarrace/following{/other_user}","gists_url":"https://api.github.com/users/manucarrace/gists{/gist_id}","starred_url":"https://api.github.com/users/manucarrace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manucarrace/subscriptions","organizations_url":"https://api.github.com/users/manucarrace/orgs","repos_url":"https://api.github.com/users/manucarrace/repos","events_url":"https://api.github.com/users/manucarrace/events{/privacy}","received_events_url":"https://api.github.com/users/manucarrace/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/32","html_url":"https://github.com/telefonicaid/fiware-orion/milestones/1.4.0","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/32/labels","id":1799195,"number":32,"title":"1.4.0","description":"","creator":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?v=3","gravatar_id":"","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":1,"state":"open","created_at":"2016-05-31T16:39:39Z","updated_at":"2016-09-12T07:08:58Z","due_on":"2016-09-29T22:00:00Z","closed_at":null},"comments":1,"created_at":"2016-09-05T14:53:11Z","updated_at":"2016-09-12T08:52:19Z","closed_at":null,"body":"When requesting an entity like:\r\n\r\ncb/v1/contextEntities/type/device/id/TelegestionModel.50088102\r\n\r\nThe contextBroker does not respond any value in the compound attribute:\r\n\r\n{\r\n        \"name\": \"configData\",\r\n        \"type\": \"compound\",\r\n        \"value\": \"\",\r\n        \"metadatas\": [\r\n          {\r\n            \"name\": \"TimeInstant\",\r\n            \"type\": \"ISO8601\",\r\n            \"value\": \"2016-09-05T14:39:13Z\"\r\n          }\r\n        ]\r\n      },\r\n\r\n\r\n\r\nHowever, when the attribute is requested directly:\r\n\r\ncb/v1/contextEntities/type/device/id/TelegestionModel.50088102/attributes/configData\r\n\r\n\r\nThe response is OK:\r\n\r\n{\r\n  \"attributes\": [\r\n    {\r\n      \"name\": \"configData\",\r\n      \"type\": \"compound\",\r\n      \"value\": {\r\n        \"acquisition_time\": {\r\n          \"acquisition_time\": \"6\"\r\n        },\r\n        \"adjust_sensor_curves\": {\r\n          \"coef_a\": \"8\",\r\n          \"coef_b\": \"13\",\r\n          \"coef_c\": \"1085\",\r\n          \"coef_d\": \"23615\",\r\n          \"histeresys\": \"5\",\r\n          \"temp_correction\": \"65486\",\r\n          \"tolerance\": \"65534\"\r\n        },\r\n        \"ambient_temperature_sensor_range\": {\r\n          \"max_range\": \"500\",\r\n          \"min_range\": \"65236\"\r\n        },...\r\n\r\n\r\n\r\n\r\n[root@pre-iot-core-fe-01 ~]# curl localhost:1026/version\r\n<orion>\r\n  <version>0.26.1_20160823140747</version>\r\n  <uptime>13 d, 1 h, 55 m, 33 s</uptime>\r\n  <git_hash>4f45f0cb3f67be844fb9a2b5a9842fa917d66464</git_hash>\r\n  <compile_time>Tue Aug 23 14:09:03 CEST 2016</compile_time>\r\n  <compiled_by>develenv</compiled_by>\r\n  <compiled_in>ci-iot-deven-01</compiled_in>\r\n</orion>\r\n"},"comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/comments/246286611","html_url":"https://github.com/telefonicaid/fiware-orion/issues/2497#issuecomment-246286611","issue_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2497","id":246286611,"user":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?v=3","gravatar_id":"","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T08:52:19Z","updated_at":"2016-09-12T08:52:19Z","body":"curl command that can be used to create the entity for testing:\r\n\r\n```\r\n(curl localhost:1026/v1/updateContext -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF\r\n{\r\n    \"contextElements\": [\r\n        {\r\n            \"type\": \"device\",\r\n            \"isPattern\": \"false\",\r\n            \"id\": \"TelegestionModel.50088102\",\r\n            \"attributes\": [\r\n                {\r\n                    \"name\": \"configData\",\r\n                    \"type\": \"compound\",\r\n                    \"value\": {\r\n                      \"acquisition_time\": {\r\n                      \"acquisition_time\": \"6\"\r\n                    },\r\n                    \"adjust_sensor_curves\": {\r\n                      \"coef_a\": \"8\",\r\n                      \"coef_b\": \"13\",\r\n                      \"coef_c\": \"1085\",\r\n                      \"coef_d\": \"23615\",\r\n                      \"histeresys\": \"5\",\r\n                      \"temp_correction\": \"65486\",\r\n                      \"tolerance\": \"65534\"\r\n                    },\r\n                    \"ambient_temperature_sensor_range\": {\r\n                      \"max_range\": \"500\",\r\n                      \"min_range\": \"65236\"\r\n                    }\r\n                  }\r\n                }\r\n            ]\r\n        }\r\n    ],\r\n    \"updateAction\": \"APPEND\"\r\n} \r\nEOF\r\n```"}}
{"actor":{"display_login":"fgalan"}}