Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8117

NPE when adding ACE with restrictions and remapped namespaces

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: core, security
    • Labels:
      None

      Description

      Alex Deparvu, just ran into an NPE when adding an ACE including some restriction. The reason is a tiny bug in the ACL implementation that mistakenly uses the oakName to retrieve the value/values from the passed restriction map. It should obviously use the key of the map, which corresponds to the jcrName. in other words: the bug only shows up when running tests with re-mapped namespaces.

      proposed fix attached. will attach a test case illustrating the issue later on.

        Attachments

        1. OAK-8117-test.patch
          5 kB
          Angela Schreiber
        2. OAK-8117.patch
          2 kB
          Angela Schreiber

          Activity

            People

            • Assignee:
              angela Angela Schreiber
              Reporter:
              angela Angela Schreiber
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: