jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florent Guillaume (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-568) incorrect jcr:uuid on frozen subnode
Date Mon, 11 Sep 2006 15:28:24 GMT
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");

            Node bar = foo.addNode("bar");
            System.out.println("bar:            " + bar.getUUID());


            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 {

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


View raw message