KARAF-4917 Support dynamicaliy registered configurations in RBAC#275
Closed
zregvart wants to merge 1 commit intoapache:masterfrom
Closed
KARAF-4917 Support dynamicaliy registered configurations in RBAC#275zregvart wants to merge 1 commit intoapache:masterfrom
zregvart wants to merge 1 commit intoapache:masterfrom
Conversation
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
Member
|
R: @jbonofre |
Member
Author
|
As per discussion in [KARAF-4917|https://issues.apache.org/jira/browse/KARAF-4917] one should use |
JiriOndrusek
pushed a commit
to JiriOndrusek/karaf-1
that referenced
this pull request
Apr 17, 2019
[ENTESB-8225] Console unusable in docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When adding configuration at runtime through
ConfigurationAdmin#createFactoryConfigurationApache Felix appendsrandom UUID to the Configuration PID [1][2].
In order for those to be considered by
getRequiredRolesthat randomUUID 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