You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Alexandre Capt (JIRA)" <ji...@apache.org> on 2015/08/25 15:34:46 UTC

[jira] [Created] (JCR-3903) JcrUtils.getOrCreateByPath requires read access on root node

Alexandre Capt created JCR-3903:
-----------------------------------

             Summary: JcrUtils.getOrCreateByPath requires read access on root node
                 Key: JCR-3903
                 URL: https://issues.apache.org/jira/browse/JCR-3903
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-jcr-commons
    Affects Versions: 2.11.0
            Reporter: Alexandre Capt


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)