From dev-return-14413-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Sep 28 11:19:15 2007 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 40354 invoked from network); 28 Sep 2007 11:19:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 11:19:13 -0000 Received: (qmail 47319 invoked by uid 500); 28 Sep 2007 11:19:02 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 47287 invoked by uid 500); 28 Sep 2007 11:19:02 -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 46992 invoked by uid 99); 28 Sep 2007 11:19:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 04:19:01 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,DNS_FROM_DOB,RCVD_IN_DOB 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; Fri, 28 Sep 2007 11:19:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D51427141FE for ; Fri, 28 Sep 2007 04:18:50 -0700 (PDT) Message-ID: <5009327.1190978330870.JavaMail.jira@brutus> Date: Fri, 28 Sep 2007 04:18:50 -0700 (PDT) From: =?utf-8?Q?Michael_D=C3=BCrig_=28JIRA=29?= To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-1140) NodeId for root node should not be hardcoded in jcr2spi In-Reply-To: <2277589.1190125904376.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1140?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel#action_12530981 ]=20 Michael D=C3=BCrig commented on JCR-1140: ------------------------------------ > for the second one (spi2jcr): that wrong. but can you please open a diffe= rent issue for that?=20 See https://issues.apache.org/jira/browse/JCR-1147 > NodeId for root node should not be hardcoded in jcr2spi > ------------------------------------------------------- > > Key: JCR-1140 > URL: https://issues.apache.org/jira/browse/JCR-1140 > Project: Jackrabbit > Issue Type: Bug > Components: SPI > Reporter: Michael D=C3=BCrig > > org.apache.jackrabbit.jcr2spi.hierarchy.NodeEntryImpl.getId() always retu= rns idFactory.createNodeId((String) null, Path.ROOT) for the root node alth= ough a repository might want to reference the root node by UUID. NodeId.get= Id() breaks the contract of org.apache.jackrabbit.spi.ItemId which for this= case states: "The item can not be identified with a unique ID and none of = its ancestors can be identified with a unique ID. The item is identified by= an absolute path". > I suggest to change the implementation such that when NodeId.getId() need= s to return the NodeId of the root node a round trip to org.apache.jackrabb= it.spi.RepositoryService.getRootId() is done.=20 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.