{"action":"closed","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1308","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1308/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1308/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1308/events","html_url":"https://github.com/telefonicaid/fiware-orion/issues/1308","id":109268277,"number":1308,"title":"Possible bug detected about patterned subscriptions [cache not working]","user":{"login":"kzangeli","id":5338380,"avatar_url":"https://avatars.githubusercontent.com/u/5338380?v=3","gravatar_id":"","url":"https://api.github.com/users/kzangeli","html_url":"https://github.com/kzangeli","followers_url":"https://api.github.com/users/kzangeli/followers","following_url":"https://api.github.com/users/kzangeli/following{/other_user}","gists_url":"https://api.github.com/users/kzangeli/gists{/gist_id}","starred_url":"https://api.github.com/users/kzangeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzangeli/subscriptions","organizations_url":"https://api.github.com/users/kzangeli/orgs","repos_url":"https://api.github.com/users/kzangeli/repos","events_url":"https://api.github.com/users/kzangeli/events{/privacy}","received_events_url":"https://api.github.com/users/kzangeli/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/P9","name":"P9","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"kzangeli","id":5338380,"avatar_url":"https://avatars.githubusercontent.com/u/5338380?v=3","gravatar_id":"","url":"https://api.github.com/users/kzangeli","html_url":"https://github.com/kzangeli","followers_url":"https://api.github.com/users/kzangeli/followers","following_url":"https://api.github.com/users/kzangeli/following{/other_user}","gists_url":"https://api.github.com/users/kzangeli/gists{/gist_id}","starred_url":"https://api.github.com/users/kzangeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzangeli/subscriptions","organizations_url":"https://api.github.com/users/kzangeli/orgs","repos_url":"https://api.github.com/users/kzangeli/repos","events_url":"https://api.github.com/users/kzangeli/events{/privacy}","received_events_url":"https://api.github.com/users/kzangeli/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/18","html_url":"https://github.com/telefonicaid/fiware-orion/milestones/0.25.0","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/18/labels","id":1248196,"number":18,"title":"0.25.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":3,"closed_issues":69,"state":"open","created_at":"2015-08-10T13:53:31Z","updated_at":"2015-11-02T07:45:22Z","due_on":"2015-10-30T23:00:00Z","closed_at":null},"comments":10,"created_at":"2015-10-01T09:58:24Z","updated_at":"2015-11-02T07:45:22Z","closed_at":"2015-11-02T07:45:22Z","body":"The following subscription seems to have stopped working in 0.24.0. It worked in 0.23.0, prior to the Subscription Cache implementation:\r\n\r\n    {\r\n      \"entities\": [\r\n        {\r\n          \"type\": \"device\",\r\n          \"isPattern\": \"true\",\r\n          \"id\": \".*”\r\n        }\r\n      ],\r\n      \"reference\": \"{{endpoint}}\",\r\n      \"duration\": \"P1D\",\r\n      \"notifyConditions\": [\r\n        {\r\n          \"type\": \"ONCHANGE\",\r\n          \"condValues\": [ \"h\" ]\r\n        }\r\n      ]\r\n    }\r\n\r\nThe expected notifications no longer arrive.\r\nIf the Subscription is modified to use an exact **entity::id** (e.g. \"id\": \"E1\", and isPattern == false) instead of **.***, then everything works as before.\r\nReported by @antoniojoseln, Sep 9, 2015"}}