You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Florent Guillaume (JIRA)" <ji...@apache.org> on 2006/09/11 17:28:24 UTC
[jira] Created: (JCR-568) incorrect jcr:uuid on frozen subnode
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
[jira] Assigned: (JCR-568) incorrect jcr:uuid on frozen subnode
Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-568?page=all ]
Tobias Bocanegra reassigned JCR-568:
------------------------------------
Assignee: Tobias Bocanegra
> 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
> Assigned To: Tobias Bocanegra
>
> 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
[jira] Updated: (JCR-568) incorrect jcr:uuid on frozen subnode
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-568?page=all ]
Jukka Zitting updated JCR-568:
------------------------------
Fix Version/s: 1.1.1
(was: 1.1)
Affects Version/s: 0.9
1.0
1.0.1
> 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.0, 1.0.1, 1.1, 0.9
> Environment: svn
> Reporter: Florent Guillaume
> Assigned To: Tobias Bocanegra
> Fix For: 1.1.1
>
>
> 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
[jira] Closed: (JCR-568) incorrect jcr:uuid on frozen subnode
Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-568?page=all ]
Tobias Bocanegra closed JCR-568.
--------------------------------
Fix Version/s: 1.1
Resolution: Fixed
fixed incorrect copying of special properties during checkin.
Committed revision 449773.
> 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
> Assigned To: Tobias Bocanegra
> Fix For: 1.1
>
>
> 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
[jira] Resolved: (JCR-568) incorrect jcr:uuid on frozen subnode
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-568?page=all ]
Jukka Zitting resolved JCR-568.
-------------------------------
Resolution: Fixed
> 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.0, 1.0.1, 1.1, 0.9
> Environment: svn
> Reporter: Florent Guillaume
> Assigned To: Tobias Bocanegra
> Fix For: 1.1.1
>
>
> 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
[jira] Reopened: (JCR-568) incorrect jcr:uuid on frozen subnode
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-568?page=all ]
Jukka Zitting reopened JCR-568:
-------------------------------
Reopening to target for 1.1.1
> 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.0, 1.0.1, 1.1, 0.9
> Environment: svn
> Reporter: Florent Guillaume
> Assigned To: Tobias Bocanegra
> Fix For: 1.1.1
>
>
> 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