Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 21459 invoked from network); 13 Sep 2007 14:45:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Sep 2007 14:45:54 -0000 Received: (qmail 51014 invoked by uid 500); 13 Sep 2007 14:45:46 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 50985 invoked by uid 500); 13 Sep 2007 14:45:46 -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 50976 invoked by uid 99); 13 Sep 2007 14:45:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 07:45:46 -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; Thu, 13 Sep 2007 14:45:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1B88D71420F for ; Thu, 13 Sep 2007 07:45:32 -0700 (PDT) Message-ID: <28577343.1189694732088.JavaMail.jira@brutus> Date: Thu, 13 Sep 2007 07:45:32 -0700 (PDT) From: "Stefan Guggisberg (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-1128) XML import always throws ItemExistsException when trying to overwrite existing nodes In-Reply-To: <2709240.1189689872070.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-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Guggisberg resolved JCR-1128. ------------------------------------ Resolution: Fixed fixed in svn r575325 thanks for reporting this issue! > XML import always throws ItemExistsException when trying to overwrite existing nodes > ------------------------------------------------------------------------------------ > > Key: JCR-1128 > URL: https://issues.apache.org/jira/browse/JCR-1128 > Project: Jackrabbit > Issue Type: Bug > Components: JCR API > Affects Versions: 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1 > Reporter: Honwai Wong > Assignee: Stefan Guggisberg > Priority: Minor > Fix For: 1.4 > > > According to the JCR-API, it should be possible to govern the import of XML serialized referenceable nodes in case of UUID collision. Unfortunately, the UUID conflict is handled too late during import, an ItemExistsException is always thrown beforehand due to not allowed same-name-siblings. > Simply try to import a previously exported referenceable node twice, providing either > - ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING or > - ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING. > This will fail and result in an ItemExistsException. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.