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

JcrUtils.getOrCreateByPath requires read access on root node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.11.0
    • None
    • jackrabbit-jcr-commons
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: