Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3903

JcrUtils.getOrCreateByPath requires read access on root node

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.11.0
    • Fix Version/s: None
    • Component/s: jackrabbit-jcr-commons
    • Labels:
      None

      Description

      While setting some specific ACLs, I discovered that org.apache.jackrabbit.commons.JcrUtils#getOrCreateByPath throws an exception if user does not have read access to the root node.

      To reproduce:
      1. Given path /a/b/c, remove read permission on / and /a
      2. Add read permission on /a/b
      3. Call JcrUtils.getOrCreateByPath("/a/b/c")

      This should be valid but the method throws an AccessDeniedException on root node

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kalex Alexandre Capt
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: