Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82CC1DA89 for ; Wed, 28 Nov 2012 13:03:01 +0000 (UTC) Received: (qmail 88590 invoked by uid 500); 28 Nov 2012 13:03:01 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 88482 invoked by uid 500); 28 Nov 2012 13:03:00 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 88364 invoked by uid 99); 28 Nov 2012 13:02:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 13:02:58 +0000 Date: Wed, 28 Nov 2012 13:02:58 +0000 (UTC) From: =?utf-8?Q?Michael_D=C3=BCrig_=28JIRA=29?= To: dev@jackrabbit.apache.org Message-ID: <325569409.32349.1354107778621.JavaMail.jiratomcat@arcas> In-Reply-To: <1972948947.28184.1354032598746.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (JCR-3465) JcrUtils.getOrCreateByPath() creates a whole subtree instead of a single branch MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3465?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D135054= 28#comment-13505428 ]=20 Michael D=C3=BCrig commented on JCR-3465: ------------------------------------ The current Javadoc for the path parameter says: "relative path to create".= So, no it shouldn't fail according to the current contract. Also AFAIU the= intention of the function was to have a method to get a node at a certain = path without having to worry about non existing nodes on that path since th= ese would just be created. =20 > 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=C3=BCrig > Priority: Minor > > Given a leaf node n, > JcrUtils.getOrCreateByPath(n, "a/b/../../c/d/../../e/f", false, null, nul= l, true); > will result in paths a/b, c/d and e/f being added to n where I'd only exp= ect the path e/f. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira