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

Permission evaluation of nodes broken after :nestedCug removed from parent node

    XMLWordPrintableJSON

Details

    Description

      Steps to Reproduce:

      1. Create a node 'a' which has two children nodes 'b1' and 'b2'. The content tree looks as shown: /content/a/b1, /content/a/b2. Create two users user1 and user2.
      2. Apply CUG policy on /content/a.
        • Authorize user1 and user2 to read /content/a.
        • Authorize user1 to read /content/a/b1.
        • Authorize user2 to read /content/a/b2.
      3. Remove :nestedCugs property from /content/a/rep:cugPolicy.
      4. Create a content session, login with user2. Try to read /content/a/b1.

      Observed behavior : user2 is able to read /content/a/b1.

      Expected behavior : user2 should not be able to read /content/a/b1 as it is unauthorized to do so.

      Please note that :nestedCugs is removed by a mechanism which completely overwrites content tree below "/content/a".

      Attachments

        1. OAK-8855.patch
          11 kB
          Kunal Shubham
        2. OAK-8855_backport.patch
          10 kB
          Kunal Shubham

        Activity

          People

            angela Angela Schreiber
            kunal3112 Kunal Shubham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: