{"action":"created","issue":{"url":"https://api.github.com/repos/Orange-OpenSource/fiware-cepheus/issues/4","labels_url":"https://api.github.com/repos/Orange-OpenSource/fiware-cepheus/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Orange-OpenSource/fiware-cepheus/issues/4/comments","events_url":"https://api.github.com/repos/Orange-OpenSource/fiware-cepheus/issues/4/events","html_url":"https://github.com/Orange-OpenSource/fiware-cepheus/issues/4","id":110430855,"number":4,"title":"QueryContext sends empty restriction.","user":{"login":"dkgof","id":747208,"avatar_url":"https://avatars.githubusercontent.com/u/747208?v=3","gravatar_id":"","url":"https://api.github.com/users/dkgof","html_url":"https://github.com/dkgof","followers_url":"https://api.github.com/users/dkgof/followers","following_url":"https://api.github.com/users/dkgof/following{/other_user}","gists_url":"https://api.github.com/users/dkgof/gists{/gist_id}","starred_url":"https://api.github.com/users/dkgof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkgof/subscriptions","organizations_url":"https://api.github.com/users/dkgof/orgs","repos_url":"https://api.github.com/users/dkgof/repos","events_url":"https://api.github.com/users/dkgof/events{/privacy}","received_events_url":"https://api.github.com/users/dkgof/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-08T11:45:16Z","updated_at":"2015-10-08T14:29:53Z","closed_at":"2015-10-08T14:26:31Z","body":"Hi,\r\n\r\nWhen i use a QueryContext to send a query to http://orion.lab.fiware.org:1026 without defining any restrictions, i get this reply from the server:\r\n\r\n```\r\n<queryContextResponse>\r\n  <errorCode>\r\n    <code>400</code>\r\n    <reasonPhrase>Bad Request</reasonPhrase>\r\n    <details>empty restriction</details>\r\n  </errorCode>\r\n</queryContextResponse>\r\n```\r\n\r\nThe query sent to the server is:\r\n```\r\n<queryContextRequest>\r\n<restriction/>\r\n<entityIdList>\r\n<entityId type=\"EventbusEvent\" isPattern=\"true\">\r\n<id>dk.cavi.eventbus.*</id>\r\n</entityId>\r\n</entityIdList>\r\n</queryContextRequest>\r\n```\r\n\r\nIt seems that the ```<restriction/>``` should not be present if no restrictions are applied?"},"comment":{"url":"https://api.github.com/repos/Orange-OpenSource/fiware-cepheus/issues/comments/146563745","html_url":"https://github.com/Orange-OpenSource/fiware-cepheus/issues/4#issuecomment-146563745","issue_url":"https://api.github.com/repos/Orange-OpenSource/fiware-cepheus/issues/4","id":146563745,"user":{"login":"yalp","id":109399,"avatar_url":"https://avatars.githubusercontent.com/u/109399?v=3","gravatar_id":"","url":"https://api.github.com/users/yalp","html_url":"https://github.com/yalp","followers_url":"https://api.github.com/users/yalp/followers","following_url":"https://api.github.com/users/yalp/following{/other_user}","gists_url":"https://api.github.com/users/yalp/gists{/gist_id}","starred_url":"https://api.github.com/users/yalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yalp/subscriptions","organizations_url":"https://api.github.com/users/yalp/orgs","repos_url":"https://api.github.com/users/yalp/repos","events_url":"https://api.github.com/users/yalp/events{/privacy}","received_events_url":"https://api.github.com/users/yalp/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T14:29:53Z","updated_at":"2015-10-08T14:29:53Z","body":"Hi @dkgof,\r\n\r\nYes, this was a mistake...\r\n\r\nThanks !"}}