You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2015/09/16 17:41:46 UTC

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

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