-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-2699] ConfigGroup mod policy resolve error
https://jira.hyperledger.org/browse/FAB-2699 The ConfigGroup mod policy is currently resolved like the ConfigValue and ConfigPolicy mod policies. For ConfigValue and ConfigPolicy mod policies, they look for the policy manager managing their config path. However, ConfigGroups represents nodes in the config path, and therefore they must resolve their policy manager by looking at their config path plus their key value. For example, the group /Channel/Orderer should resolve a mod policy of Admins to /Channel/Orderer/Admins but it currently resolves it to /Channel/Admins. While on the other hand the value /Channel/Orderer/foo should resolve a mod policy of Admins to /Channel/Orderer/Admins and not /Channel/Orderer/foo/Admins (because foo is not a group node in the config). This CR fixes this mistake, enhances logging slightly, and adds a test case. Change-Id: I0d8b58f8ca21f78a8a2d7331e330fea4768ab973 Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
- Loading branch information
Jason Yellick
committed
Mar 8, 2017
1 parent
f086f8b
commit ae01f15
Showing
4 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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