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

AccessControlEntry.getPrivileges() behaves diffent than in Oak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8
    • 0.10
    • jcr, security
    • None

    Description

      Set an Ace of an JackrabbitAccessControlList Policy with the composits of a an aggregate Privilege.
      Eg. the jcr:addNode, jcr:createNode, ... of jcr:write

      On read of the the AccessControlEntry.getPrivileges(), Oak returns the single privileges.
      On Jackrabbit the aggregate jcr:write is returned.

      I'm aware that both behaviors are valid accoring the specification

          /**
           * Returns the privileges associated with this access control entry.
           *
           * @return an array of <code>Privilege</code>s.
           */
          public Privilege[] getPrivileges();
      

      But it may get an migration issue. Though its occurence may be rare like in testcases.

      Attachments

        1. Issue.java
          3 kB
          Christan Keller

        Activity

          People

            angela Angela Schreiber
            chkeller Christan Keller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: