{"action":"created","issue":{"url":"https://api.github.com/repos/apache/karaf/issues/275","repository_url":"https://api.github.com/repos/apache/karaf","labels_url":"https://api.github.com/repos/apache/karaf/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/apache/karaf/issues/275/comments","events_url":"https://api.github.com/repos/apache/karaf/issues/275/events","html_url":"https://github.com/apache/karaf/pull/275","id":198537374,"number":275,"title":"KARAF-4917 Support dynamicaliy registered configurations in RBAC","user":{"login":"zregvart","id":1306050,"avatar_url":"https://avatars.githubusercontent.com/u/1306050?v=3","gravatar_id":"","url":"https://api.github.com/users/zregvart","html_url":"https://github.com/zregvart","followers_url":"https://api.github.com/users/zregvart/followers","following_url":"https://api.github.com/users/zregvart/following{/other_user}","gists_url":"https://api.github.com/users/zregvart/gists{/gist_id}","starred_url":"https://api.github.com/users/zregvart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zregvart/subscriptions","organizations_url":"https://api.github.com/users/zregvart/orgs","repos_url":"https://api.github.com/users/zregvart/repos","events_url":"https://api.github.com/users/zregvart/events{/privacy}","received_events_url":"https://api.github.com/users/zregvart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-03T18:27:45Z","updated_at":"2017-01-04T09:09:02Z","closed_at":"2017-01-04T09:09:02Z","pull_request":{"url":"https://api.github.com/repos/apache/karaf/pulls/275","html_url":"https://github.com/apache/karaf/pull/275","diff_url":"https://github.com/apache/karaf/pull/275.diff","patch_url":"https://github.com/apache/karaf/pull/275.patch"},"body":"When adding configuration at runtime through\r\n`ConfigurationAdmin#createFactoryConfiguration` Apache Felix appends\r\nrandom UUID to the Configuration PID [1][2].\r\n\r\nIn order for those to be considered by `getRequiredRoles` that random \r\nUUID needs to be removed in comparison performed by `getGeneralPid`.\r\n\r\n[1] https://github.com/apache/felix/blob/trunk/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java#L397-L400\r\n[2] https://github.com/apache/felix/blob/trunk/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java#L1093-L1137"},"comment":{"url":"https://api.github.com/repos/apache/karaf/issues/comments/270325406","html_url":"https://github.com/apache/karaf/pull/275#issuecomment-270325406","issue_url":"https://api.github.com/repos/apache/karaf/issues/275","id":270325406,"user":{"login":"zregvart","id":1306050,"avatar_url":"https://avatars.githubusercontent.com/u/1306050?v=3","gravatar_id":"","url":"https://api.github.com/users/zregvart","html_url":"https://github.com/zregvart","followers_url":"https://api.github.com/users/zregvart/followers","following_url":"https://api.github.com/users/zregvart/following{/other_user}","gists_url":"https://api.github.com/users/zregvart/gists{/gist_id}","starred_url":"https://api.github.com/users/zregvart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zregvart/subscriptions","organizations_url":"https://api.github.com/users/zregvart/orgs","repos_url":"https://api.github.com/users/zregvart/repos","events_url":"https://api.github.com/users/zregvart/events{/privacy}","received_events_url":"https://api.github.com/users/zregvart/received_events","type":"User","site_admin":false},"created_at":"2017-01-04T09:09:02Z","updated_at":"2017-01-04T09:09:02Z","body":"As per discussion in [KARAF-4917|https://issues.apache.org/jira/browse/KARAF-4917] one should use `getConfiguration` instead of `createFactoryConfiguration` to dynamically configure RBAC."}}
{"actor":{"display_login":"zregvart"}}