You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2019/05/29 12:30:00 UTC

[jira] [Comment Edited] (OAK-8370) Simplify o.a.j.oak.security.user.Utils.getOrAddTree

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

angela edited comment on OAK-8370 at 5/29/19 12:29 PM:
-------------------------------------------------------

Committed revision 1860338.
also adjusted javadoc referring to unused {{NodeUtil}} at revision 1860339.



was (Author: anchela):
Committed revision 1860338.


> Simplify o.a.j.oak.security.user.Utils.getOrAddTree
> ---------------------------------------------------
>
>                 Key: OAK-8370
>                 URL: https://issues.apache.org/jira/browse/OAK-8370
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core, security
>            Reporter: angela
>            Assignee: angela
>            Priority: Minor
>             Fix For: 1.14.0
>
>
> instead of accessing the tree first and re-iterating over all path segments if it doesn't exist, the latter could be done right away and in addition use {{TreeUtil.getOrAddChild}}, which also will take care of throw {{AccessDeniedException}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)