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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2019/06/11 10:52:11 UTC

[jira] [Closed] (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:all-tabpanel ]

Davide Giannella closed OAK-8370.
---------------------------------

bulk close 1.14.0

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