Commit ae01f15
Jason Yellick
[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>1 parent f086f8b commit ae01f15
File tree
4 files changed
+20
-2
lines changed- common
- configtx
- config
4 files changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
168 | 178 | | |
0 commit comments