enapps-enorman opened a new pull request, #10:
URL:
https://github.com/apache/sling-org-apache-sling-jcr-jackrabbit-accessmanager/pull/10
Redundant privileges may be contained in ACE when setting restriction
details for a privilege that is part of an already allowed aggregate
Use case: Posting a modifyAce request with fields like this:
- privilege@jcr:all=allow
- restriction@jcr:removeNode@rep:itemNames@Allow=item1
Before this fix the ACE output contained some redundant privileges that are
already covered by jcr:all like this:
`{
"principal":"everyone",
"privileges":{
"jcr:addChildNodes":{
"allow":true
},
"jcr:removeNode":{
"allow":{
"rep:itemNames":[
"item1"
]
}
},
"jcr:removeChildNodes":{
"allow":true
},
"jcr:all":{
"allow":true
},
"jcr:modifyProperties":{
"allow":true
}
}
}`
After the fix, the redundant privileges are not there like this:
`{
"principal":"everyone",
"privileges":{
"jcr:removeNode":{
"allow":{
"rep:itemNames":[
"item1"
]
}
},
"jcr:all":{
"allow":true
}
}
}`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]