You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Bart van der Schans (JIRA)" <ji...@apache.org> on 2012/11/28 13:24:59 UTC

[jira] [Commented] (JCR-3465) JcrUtils.getOrCreateByPath() creates a whole subtree instead of a single branch

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

Bart van der Schans commented on JCR-3465:
------------------------------------------

Shouldn't it just fail if a/b or c/d doesn't exist?
                
> JcrUtils.getOrCreateByPath() creates a whole subtree instead of a single branch
> -------------------------------------------------------------------------------
>
>                 Key: JCR-3465
>                 URL: https://issues.apache.org/jira/browse/JCR-3465
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>            Reporter: Michael Dürig
>            Priority: Minor
>
> Given a leaf node n,
> JcrUtils.getOrCreateByPath(n, "a/b/../../c/d/../../e/f", false, null, null, true);
> will result in paths a/b, c/d and e/f being added to n where I'd only expect the path e/f.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira