{"action":"created","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/968","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/968/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/968/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/968/events","html_url":"https://github.com/telefonicaid/fiware-orion/issues/968","id":86909588,"number":968,"title":"Subscription using wring regex patterns","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/P4","name":"P4","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T09:54:00Z","updated_at":"2015-09-22T10:09:38Z","closed_at":null,"body":"Raised during Developers Week Viena 2015.\r\n\r\nIt seem there are problems with subscriptions using patterns when the pattern is not a righ regex. Eg, when using `*` (wrong) instead of `.*` (right). Details below (IPs has been offuscated).\r\n\r\nOrion Context Broker GE\r\nversion 0.14.0\r\nimage 3.4\r\n\r\nSubscription request\r\n\r\nEndpoint: http://A.B.C.D:1026/ngsi10/subscribeContext\r\n\r\npayload:\r\n\r\n```\r\n{\r\n    \"entities\": [\r\n        {\r\n            \"type\": \"Patient\",\r\n            \"isPattern\": \"true\",\r\n            \"id\": \"*\"\r\n        }\r\n    ],\r\n    \"attributes\": [\r\n        \"Blood glucose\",\r\n        \"Body temperature\",\r\n        \"Systolic blood pressure\",\r\n        \"Diastolic blood pressure\",\r\n        \"Respiration rate\",\r\n        \"Heart rate\",\r\n        \"Blood oxygen\",\r\n        \"timestamp\"\r\n    ],\r\n    \"reference\": \"http://A.B.C.D:5999/orion2mysql\",\r\n    \"duration\": \"P1Y\",\r\n    \"notifyConditions\": [\r\n        {\r\n            \"type\": \"ONCHANGE\",\r\n            \"condValues\": [\r\n                \"timestamp\"\r\n            ]\r\n        }\r\n    ],\r\n    \"throttling\": \"PT1S\"\r\n}\r\n```\r\n\r\nUpdate request:\r\nEndpoint: http://A.B.C.D:1026/ngsi10/updateContext\r\n\r\nPayload:\r\n```\r\n{\r\n     \"contextElements\":\r\n     [\r\n        {\r\n            \"type\": \"Patient\",\r\n            \"isPattern\": \"false\",\r\n            \"id\": \"Patient138866191\",\r\n            \"attributes\": [\r\n            {\r\n                \"name\": \"Heart rate\",\r\n                \"type\": \"bpm\",\r\n                \"value\": \"72\"\r\n            },\r\n            {\r\n                \"name\" : \"Diastolic blood pressure\",\r\n                \"type\" : \"mmHg\",\r\n                \"value\" : \"11.6\"\r\n            },\r\n            {\r\n                \"name\" : \"Systolic blood pressure\",\r\n                \"type\" : \"mmHg\",\r\n                \"value\" : \"7.6\"\r\n            },\r\n            {\r\n                \"name\" : \"timestamp\",\r\n                \"type\" : \"Europe/Athens\",\r\n                \"value\" : \"2014-12-09 17:05:34\"\r\n            }\r\n            ]\r\n        }\r\n    ],\r\n    \"updateAction\": \"APPEND\"\r\n}\r\n```\r\n\r\nYou have to replace the id:\"Patient138866191\" included in the update request payload with  id:\"GR138866191\" to get a right response.\r\n"},"comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/comments/142235509","html_url":"https://github.com/telefonicaid/fiware-orion/issues/968#issuecomment-142235509","issue_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/968","id":142235509,"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":"2015-09-22T10:09:38Z","updated_at":"2015-09-22T10:09:38Z","body":"Need to check if the problem happens in a recent version (Orion 0.24.0)."}}