jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-1034) Unable to save session after saving a renamed node
Date Fri, 03 Aug 2007 10:26:53 GMT

    [ https://issues.apache.org/jira/browse/JCR-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517500
] 

Julian Reschke commented on JCR-1034:
-------------------------------------

It seems that this breaks test test case org.apache.jackrabbit.test.api,SessionTest.testMoveConstraintViolationExceptionSrc,
which seems to verfiy that an exception *is* thrown.

Unless that test case somehow is broken, I recommend to back out the change, and to resolve
this issue as invalid.


> Unable to save session after saving a renamed node
> --------------------------------------------------
>
>                 Key: JCR-1034
>                 URL: https://issues.apache.org/jira/browse/JCR-1034
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>            Reporter: Edgar Poce
>            Assignee: Stefan Guggisberg
>            Priority: Minor
>
> 		TransientRepository repo = new TransientRepository(
> 				"applications/test/repository.xml", "applications/test");
> 		Session s = repo.login(new SimpleCredentials("test", "".toCharArray()));
> 		if (s.getRootNode().hasNode("parent")) {
> 			s.getRootNode().getNode("parent").remove();
> 			s.save();
> 		}
> 		// create parent node
> 		Node parent = s.getRootNode().addNode("parent");
> 		
> 		// create node to rename
> 		parent.addNode("newnode");
> 		s.save();
> 		// rename node
> 		s.move("/parent/newnode", "/parent/renamedNewNode");
> 		// save renamed node
> 		s.getRootNode().getNode("parent/renamedNewNode").save();
> 		// try to save session --> FAILS
> 		s.save();
> 		s.logout();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message