Workspace.clone() fails the second time, if cloning referenceables ------------------------------------------------------------------
Key: JCR-439 URL: http://issues.apache.org/jira/browse/JCR-439 Project: Jackrabbit Type: Bug Versions: 1.0, 0.9 Environment: jackrabbit r408873 Reporter: Tobias Bocanegra Assigned to: Stefan Guggisberg the following testcode fails with the 2nd clone. please note, that if the 'folder' node is not made referenceable, the test passes (copied an adapted from test in WorkspaceCloneTest). public void testCloneNodesTwice() throws RepositoryException { // clone referenceable node below non-referenceable node String dstAbsPath = node2W2.getPath() + "/" + node1.getName(); Node folder = node1.addNode("folder"); folder.addMixin("mix:referenceable"); node1.save(); workspaceW2.clone(workspace.getName(), node1.getPath(), dstAbsPath, true); workspaceW2.clone(workspace.getName(), node1.getPath(), dstAbsPath, true); // there should not be any pending changes after clone assertFalse(superuserW2.hasPendingChanges()); } -- 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