Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5A962200C00 for ; Tue, 3 Jan 2017 19:28:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 59477160B20; Tue, 3 Jan 2017 18:28:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A755F160B43 for ; Tue, 3 Jan 2017 19:27:59 +0100 (CET) Received: (qmail 14736 invoked by uid 500); 3 Jan 2017 18:27:58 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 14401 invoked by uid 99); 3 Jan 2017 18:27:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2017 18:27:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8555A2C1F56 for ; Tue, 3 Jan 2017 18:27:58 +0000 (UTC) Date: Tue, 3 Jan 2017 18:27:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4917) Support dynamicaliy registered configurations in RBAC MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 03 Jan 2017 18:28:00 -0000 [ https://issues.apache.org/jira/browse/KARAF-4917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15795747#comment-15795747 ] ASF GitHub Bot commented on KARAF-4917: --------------------------------------- GitHub user zregvart opened a pull request: https://github.com/apache/karaf/pull/275 KARAF-4917 Support dynamicaliy registered configurations in RBAC When adding configuration at runtime through `ConfigurationAdmin#createFactoryConfiguration` Apache Felix appends random UUID to the Configuration PID [1][2]. In order for those to be considered by `getRequiredRoles` that random UUID needs to be removed in comparison performed by `getGeneralPid`. [1] https://github.com/apache/felix/blob/trunk/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java#L397-L400 [2] https://github.com/apache/felix/blob/trunk/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java#L1093-L1137 You can merge this pull request into a Git repository by running: $ git pull https://github.com/zregvart/karaf master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/karaf/pull/275.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #275 ---- commit 0dbf67cbedf2e77a926121fedc506433ee43d21b Author: Zoran Regvart Date: 2017-01-03T18:16:33Z Support dynamic configuration from ConfigAdmin When adding configuration at runtime through ConfigurationAdmin#createFactoryConfiguration Apache Felix appends random UUID to the Configuration PID [1][2]. In order for those to be considered by `getRequiredRoles` that random UUID needs to be removed in comparison performed by `getGeneralPid`. [1] https://github.com/apache/felix/blob/trunk/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java#L397-L400 [2] https://github.com/apache/felix/blob/trunk/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java#L1093-L1137 ---- > Support dynamicaliy registered configurations in RBAC > ----------------------------------------------------- > > Key: KARAF-4917 > URL: https://issues.apache.org/jira/browse/KARAF-4917 > Project: Karaf > Issue Type: Improvement > Components: karaf-security > Affects Versions: 4.1.0 > Reporter: Zoran Regvart > Priority: Minor > > When adding configuration at runtime through {{ConfigurationAdmin#createFactoryConfiguration}} Apache Felix appends [random|https://github.com/apache/felix/blob/trunk/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java#L397-L400] [UUID|https://github.com/apache/felix/blob/trunk/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java#L1093-L1137] to the Configuration PID. > In order for those to be considered by {{getRequiredRoles}} that random UUID needs to be removed in comparison performed by {{getGeneralPid}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)