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

Effective policies should implememt PrincipalAccessControlList

    XMLWordPrintableJSON

Details

    Description

      currently the policies returned upon AccessControlManager.getEffectivePolicies(String) and JackrabbitAccessControlManager.getEffectivePolicies(Set<Prinicipal>) are instances of ImmutableACL, which doesn't reflect the fact that the implementation handles PrincipalAccessControlList. This makes it a bit confising to 'read' in a composite setup in particular when comparing the return value of getPolicies with getEffectivePolicies.
      therefore i would suggest to introduce an extension of ImmutableACL implementing PrincipalAccessControlList and using this for the return value of both methods covering effective policies.

      stillalex, fyi

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: