{"action":"closed","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2241","repository_url":"https://api.github.com/repos/telefonicaid/fiware-orion","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2241/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2241/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/2241/events","html_url":"https://github.com/telefonicaid/fiware-orion/issues/2241","id":158369775,"number":2241,"title":"Wrong error message at GET /v2/entities/Room1 when 'attrs=' uses unkown attribute","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},"labels":[{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/P6","name":"P6","color":"0052cc"}],"state":"closed","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/31","html_url":"https://github.com/telefonicaid/fiware-orion/milestones/1.3.0","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/31/labels","id":1745531,"number":31,"title":"1.3.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":28,"closed_issues":53,"state":"open","created_at":"2016-05-03T15:26:05Z","updated_at":"2016-07-04T07:48:20Z","due_on":"2016-06-29T22:00:00Z","closed_at":null},"comments":5,"created_at":"2016-06-03T13:40:41Z","updated_at":"2016-07-04T07:48:20Z","closed_at":"2016-07-04T07:48:20Z","body":"Not sure if already covered in another existing issue  (@iariasleon could you have a look?)...\r\n\r\nThe following operation (on an existing entity) is reporting wrong error message, i.e. the attribute is the element that doesn't exist, not the entity:\r\n\r\n```\r\ncurl localhost:1026/v2/entities/Room1?attrs=mistaken\r\n\r\n{\"error\":\"NotFound\",\"description\":\"The requested entity has not been found. Check type and id\"}\r\n```\r\n\r\nNote that a similar operation shows the right message:\r\n\r\n```\r\ncurl localhost:1026/v2/entities/Room1/attrs/mistake\r\n\r\n{\"error\":\"NotFound\",\"description\":\"The entity does not have such an attribute\"}\r\n```\r\n\r\nOnce this gets fixed in Orion, NGSIv2 cookbook should be updated to re-include the \"One entity attribute. Not present\" operation (cc: @FiwareULPGC )\r\n"}}
{"actor":{"display_login":"fgalan"}}