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

JackrabbitAccessControlManager.getEffectivePolicies(Set principals) should include ReadPolicy

    XMLWordPrintableJSON

Details

    Description

      Oak default authorization setup allows to configure paths that are always readable, which by default applies to namespaces, node types and privileges.

      Today AccessControlManager.getEffectivePolicies(String path) includes a NamedAccessControllPolicy if the path refers to a node where this read-policy is configured.
      In contrast JackrabbitAccessControlManager.getEffectivePolicies(Set principals) does not include it. Obviously this ReadPolicy applies for every set of principals.
      However, for consistency and to avoid confusion the NamedAccessControllPolicy should be included in the set if the editing session has sufficient permission on any of the configured paths.

      Note: filed this as improvement request (and not a bug) because getEffectivePolicy is specified to be a best-effort method.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: