Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 49024 invoked from network); 11 Sep 2006 15:32:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Sep 2006 15:32:10 -0000 Received: (qmail 31059 invoked by uid 500); 11 Sep 2006 15:32:05 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 30968 invoked by uid 500); 11 Sep 2006 15:32:05 -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 30931 invoked by uid 99); 11 Sep 2006 15:32:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 08:32:05 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 08:32:04 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AC22641001F for ; Mon, 11 Sep 2006 15:28:24 +0000 (GMT) Message-ID: <2504943.1157988504701.JavaMail.jira@brutus> Date: Mon, 11 Sep 2006 08:28:24 -0700 (PDT) From: "Florent Guillaume (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-568) incorrect jcr:uuid on frozen subnode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N incorrect jcr:uuid on frozen subnode ------------------------------------ Key: JCR-568 URL: http://issues.apache.org/jira/browse/JCR-568 Project: Jackrabbit Issue Type: Bug Components: versioning Affects Versions: 1.1 Environment: svn Reporter: Florent Guillaume The following program: import javax.jcr.Repository; import javax.jcr.Session; import javax.jcr.SimpleCredentials; import javax.jcr.Node; import org.apache.jackrabbit.core.TransientRepository; public class debug2 { public static void main(String[] args) throws Exception { Repository repository = new TransientRepository(); Session session = repository.login( new SimpleCredentials("username", "password".toCharArray())); try { Node root = session.getRootNode(); Node foo = root.addNode("foo"); foo.addMixin("mix:versionable"); Node bar = foo.addNode("bar"); bar.addMixin("mix:referenceable"); System.out.println("bar: " + bar.getUUID()); session.save(); foo.checkin(); Node frozenbar = foo.getBaseVersion().getNode("jcr:frozenNode").getNode("bar"); System.out.println("frozenbar UUID: " + frozenbar.getUUID()); System.out.println("jcr:uuid: " + frozenbar.getProperty("jcr:uuid").getValue().getString()); System.out.println("jcr:frozenUuid: " + frozenbar.getProperty("jcr:frozenUuid").getValue().getString()); } finally { session.logout(); } } } Gives as sample output: bar: fcf0affb-7476-4a64-a480-3039e8c53d53 frozenbar UUID: ed9fece9-9837-4ecc-9b7e-55bdfb8284e2 jcr:uuid: fcf0affb-7476-4a64-a480-3039e8c53d53 jcr:frozenUuid: fcf0affb-7476-4a64-a480-3039e8c53d53 The jcr:uuid of the frozen bar is incorrect (althoug getUUID() returns the correct value). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira