You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Edgar Poce (JIRA)" <ji...@apache.org> on 2007/07/25 16:50:31 UTC
[jira] Created: (JCR-1034) Unable to save session after saving a
renamed node
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
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.
[jira] Resolved: (JCR-1034) Unable to save session after saving a
renamed node
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Guggisberg resolved JCR-1034.
------------------------------------
Resolution: Fixed
fixed in svn rev. #561000
> 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.
[jira] Resolved: (JCR-1034) Unable to save session after saving a
renamed node
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Guggisberg resolved JCR-1034.
------------------------------------
Resolution: Fixed
Fix Version/s: 1.4
fixed in svn r562512
> 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
> Fix For: 1.4
>
>
> 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.
[jira] Commented: (JCR-1034) Unable to save session after saving a
renamed node
Posted by "Julian Reschke (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (JCR-1034) Unable to save session after saving a
renamed node
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517568 ]
Stefan Guggisberg commented on JCR-1034:
----------------------------------------
the real issue is that it is possible to save a renamed node without saving its parent.
a ConstraintViolationException should be thrown instead indicating that the parent
of a renamed node needs to be saved as well.
> 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.
[jira] Reopened: (JCR-1034) Unable to save session after saving a
renamed node
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Guggisberg reopened JCR-1034:
------------------------------------
reopening, test cases fail legitimately
> 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.
[jira] Updated: (JCR-1034) Unable to save session after saving a
renamed node
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated JCR-1034:
-------------------------------
Affects Version/s: 0.9
1.0
1.0.1
1.1
1.1.1
1.2.1
1.2.2
1.2.3
1.3
1.3.1
Fix Version/s: (was: 1.4)
1.3.2
Merged to the 1.3 branch in revision 577701.
> 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
> Affects Versions: 0.9, 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1
> Reporter: Edgar Poce
> Assignee: Stefan Guggisberg
> Priority: Minor
> Fix For: 1.3.2
>
>
> 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.
[jira] Assigned: (JCR-1034) Unable to save session after saving a
renamed node
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Guggisberg reassigned JCR-1034:
--------------------------------------
Assignee: Stefan Guggisberg
> 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.