Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 42892 invoked from network); 21 May 2008 06:35:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 May 2008 06:35:19 -0000 Received: (qmail 14979 invoked by uid 500); 21 May 2008 06:35:20 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 14946 invoked by uid 500); 21 May 2008 06:35:20 -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 14931 invoked by uid 99); 21 May 2008 06:35:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 23:35:20 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2008 06:34:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9BD4C234C119 for ; Tue, 20 May 2008 23:34:55 -0700 (PDT) Message-ID: <1363451363.1211351695637.JavaMail.jira@brutus> Date: Tue, 20 May 2008 23:34:55 -0700 (PDT) From: "angela (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-1614) uuid of newly added node In-Reply-To: <1308911388.1211233435699.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-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598563#action_12598563 ] angela commented on JCR-1614: ----------------------------- the node does have a dummy uuid in the jcr:uuid property. BUT: the node is not referenceable unless save is called (this is legal according to the spec) and therefore Node.getUUID() must throw. > uuid of newly added node > ------------------------ > > Key: JCR-1614 > URL: https://issues.apache.org/jira/browse/JCR-1614 > Project: Jackrabbit > Issue Type: Bug > Components: jackrabbit-jcr2spi > Reporter: Scott Cytacki > Fix For: 1.5 > > > I'm using jcr2spi with spi2dav. > When I add a new child node. And add the "mix:referenceable" mixin. > and I don't "save" the node. > Calling node.getUUID(); > causes a repository exception. > My reading of the JCR spec section 4.9.1.1 > is that a node should at least have a dummy UUID even if it hasn't been saved yet. > The jcr2spi.NodeImpl.createNode method has the comment: > // NOTE: uuid is generated while creating new state. > But I cannot find where that is happening. > I can submit a test case for this if that would help. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.