Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 6792 invoked from network); 1 May 2006 19:55:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 May 2006 19:55:55 -0000 Received: (qmail 23542 invoked by uid 500); 1 May 2006 19:55:54 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 23493 invoked by uid 500); 1 May 2006 19:55:53 -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 23484 invoked by uid 99); 1 May 2006 19:55:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2006 12:55:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of davek@us.ibm.com designates 32.97.110.149 as permitted sender) Received: from [32.97.110.149] (HELO e31.co.us.ibm.com) (32.97.110.149) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2006 12:55:52 -0700 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e31.co.us.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k41JtVro013033 for ; Mon, 1 May 2006 15:55:31 -0400 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k41JtUNn250826 for ; Mon, 1 May 2006 13:55:31 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id k41JtUAV002790 for ; Mon, 1 May 2006 13:55:30 -0600 Received: from d03nm119.boulder.ibm.com (d03nm119.boulder.ibm.com [9.17.195.145]) by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id k41JtUu3002784 for ; Mon, 1 May 2006 13:55:30 -0600 To: dev@jackrabbit.apache.org Subject: Restore of node with child node having onParentVersion=VERSION fails MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 From: David Kennedy Message-ID: Date: Mon, 1 May 2006 15:58:57 -0400 X-MIMETrack: Serialize by Router on D03NM119/03/M/IBM(Release 6.5.5HF268 | April 6, 2006) at 05/01/2006 13:58:58, Serialize complete at 05/01/2006 13:58:58 Content-Type: multipart/alternative; boundary="=_alternative 006D71C485257161_=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=_alternative 006D71C485257161_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable I have a node whose definition has properties and child nodes. The=20 definitions of the nodetypes for the node and the child include=20 mix:versionable. The properties definitions have onParentVersion=3DCOPY an= d=20 the child nodes have onParentVersion=3DVERSION. When I create a node with = child nodes and checkin and then restore the node, I get a=20 "....VersionException: Restore of root node not allowed" This is=20 occurring on the restore of the child node. According to the spec: Child Node=20 On checkin of N, the node VN will get a subnode of type nt:versionedChild=20 with the same name as C. The single property of this node,=20 jcr:childVersionHistory is a REFERENCE to the version history of C (not to = C or any actual version of C). This also requires that C itself be=20 versionable (otherwise it would not have a version history).=20 . . . On restore of VN, if the workspace currently has an already existing node=20 corresponding to C?s version history and the removeExisting flag of the=20 restore is set to true, then that instance of C becomes the child of the=20 restored N. If the workspace currently has an already existing node=20 corresponding to C?s version history and the removeExisting flag of the=20 restore is set to false then an ItemExistsException is thrown.=20 I'm restoring the node using=20 node.restore(version, true); Is this expected behavior? David --=_alternative 006D71C485257161_=--