[ 
https://issues.apache.org/jira/browse/JCR-3903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14790573#comment-14790573
 ] 

angela commented on JCR-3903:
-----------------------------

workaround: use the method that takes a base-node (in your example node at 
"/a/b") and a relative path (in your example "c").

> 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)

Reply via email to