Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10334

PrivilegesHandler: regexp never matches privileges definitions from content packages

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              angela Angela Schreiber
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: