Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A56611710 for ; Wed, 20 Aug 2014 14:46:10 +0000 (UTC) Received: (qmail 43518 invoked by uid 500); 20 Aug 2014 14:45:47 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 43486 invoked by uid 500); 20 Aug 2014 14:45:47 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 43412 invoked by uid 99); 20 Aug 2014 14:45:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2014 14:45:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of oren.zamir@pb.com designates 209.51.184.56 as permitted sender) Received: from [209.51.184.56] (HELO mta1b-out-s8.mail.zscaler.net) (209.51.184.56) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2014 14:45:17 +0000 Received: from mymail.pb.com ([65.54.20.5]) by mta1b.mail.zscaler.net ([209.51.184.16]) with ESMTPS id 53F4B47C10BE000F; Wed, 20 Aug 2014 07:45:16 -0700 Received: from 013-BR1MMR1-006.MGDPBI.global.pvt (65.54.20.102) by pbi-br1mhub-01.MGDPBI.global.pvt (65.54.20.5) with Microsoft SMTP Server (TLS) id 8.3.279.1; Wed, 20 Aug 2014 14:44:47 +0000 Received: from 013-BR1MPN1-012.MGDPBI.global.pvt ([169.254.2.199]) by 013-BR1MMR1-006.MGDPBI.global.pvt ([65.54.20.102]) with mapi id 14.03.0195.002; Wed, 20 Aug 2014 14:44:47 +0000 From: Oren Zamir To: "users@jackrabbit.apache.org" Subject: SessionImporter bug? Thread-Topic: SessionImporter bug? Thread-Index: Ac+8hTLxLuE//DSjSPC1jB1TUv79gQ== Date: Wed, 20 Aug 2014 14:44:46 +0000 Message-ID: <7508558094C38D4CAB9B8154729E17D90796A975@013-BR1MPN1-012.MGDPBI.global.pvt> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [161.228.159.216] Content-Type: multipart/alternative; boundary="_000_7508558094C38D4CAB9B8154729E17D90796A975013BR1MPN1012MG_" MIME-Version: 1.0 X-Zscaler: score=0 iprep=0 v=2.1 cv=T8qYTp6Q c=1 sm=2 tr=0 a=4lQcKTOST7Jh+hVG/ ZwEHw==:117 a=9UZBle0y9coy1jv0XchZdQ==:17 a=8RV5J67PAAAA:8 a=1a0l2ndbAAAA:8 a =nl8DvlpEUK4A:10 a=4UjQ6FRQMEsA:10 a=lpJl-i_tFkMA:10 a=SK8lh4zsjxgA:10 a=n1rC r5UOACO2eRevPcsA:9 a=CjuIK1q_8ugA:10 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=o6eu _4rkV4l_6_4JGY4A:9 a=gKO2Hq4RSVkA:10 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=fr z4AuCg-hUA:10 X-Virus-Checked: Checked by ClamAV on apache.org --_000_7508558094C38D4CAB9B8154729E17D90796A975013BR1MPN1012MG_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, While trying to do an importXML for a sub node that is of a type nt:folder = we were getting exceptions - "javax.jcr.ItemExistsException: Node with the= same UUID exists" However, the node has no Id and the existing node does have an id. Further = investigation pointed us to the following block of code - if (!(existing.getId().equals(id) && (uuidBehavior =3D=3D ImportUUIDBehavior.IMPO= RT_UUID_COLLISION_REMOVE_EXISTING || uuidBehavior =3D=3D ImportUUIDBehavior.IMPOR= T_UUID_COLLISION_REPLACE_EXISTING))) { throw new ItemExistsException( "Node with the same UUID exists:" + existin= g); } Even with the uuidBehavior set to any enum it will throw an exception when = the id =3D null (from the imported xml). Is this a bug? Regards, Oren ________________________________ --_000_7508558094C38D4CAB9B8154729E17D90796A975013BR1MPN1012MG_--