Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
Description
kpauls, as discussed the PrivilegesHandler will never match a privileges.xml file contained in the META_INF folder of a content package. i did an initial test with a AEM specific content package and changing the regexp as follows seems to do the trick:
instead of
"META-INF/vault/privileges\\.xml"
the path-pattern should be
"/META-INF/vault/privileges\\.xml"
this will lead to PrivilegesHandlerTest.matches to fail but that one is anyway a bit odd.... the next test parsePrivileges uses a path String path = "/META-INF/vault/privileges.xml";, which wouldn't match but since PrivilegesHandler.handle is directly called it wasn't noticed.
will try to come up with a reasonable test package that illustrates the issue.
Attachments
Issue Links
- links to