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

NPE when adding ACE with restrictions and remapped namespaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0
    • core, security
    • None

    Description

      stillalex, 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

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

            Dates

              Created:
              Updated:
              Resolved: