Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 11250 invoked from network); 13 Aug 2007 17:08:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2007 17:08:10 -0000 Received: (qmail 60632 invoked by uid 500); 13 Aug 2007 17:07:57 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 60608 invoked by uid 500); 13 Aug 2007 17:07:57 -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 60599 invoked by uid 99); 13 Aug 2007 17:07:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 10:07:57 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 17:08:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4B1377141EB for ; Mon, 13 Aug 2007 10:07:36 -0700 (PDT) Message-ID: <10949902.1187024856303.JavaMail.jira@brutus> Date: Mon, 13 Aug 2007 10:07:36 -0700 (PDT) From: "Marcus Kaar (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-1055) Incorrect node position after import In-Reply-To: <27066562.1186565699093.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519474 ] Marcus Kaar commented on JCR-1055: ---------------------------------- WOW! thats good to hear! Thank you! Marcus. > Incorrect node position after import > ------------------------------------ > > Key: JCR-1055 > URL: https://issues.apache.org/jira/browse/JCR-1055 > Project: Jackrabbit > Issue Type: Bug > Affects Versions: 1.3 > Reporter: Marcus Kaar > Fix For: 1.4 > > > I have found a behavior that does not seem to be consistent with the > spec: > After replacing a node with importXML using IMPORT_UUID_COLLISION_REPLACE_EXISTING the new node is not at the position of the replaced node (talking about the position among the siblings). > The origininal node is removed, but the new node is created as the last child of the parent node, and not spec-compliant at the position of the replaced node. > Here how I use it: > // assume Session s, Node n, String text (holding XML data) > s.importXML( > n.getPath(), > new ByteArrayInputStream (text.getBytes("UTF-8")), > ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING > ); > s.save(); > > And here a quote from the spec section 7.3.6 > ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING: > If an incoming referenceable node has the same UUID as a node already existing in the workspace then the already existing node is replaced by the incoming node in the same position as the existing node. > [note "same position"] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.