Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.8
-
None
-
Windows 7, Day Cq, (Not tested on Linux)
Description
Hi,
When checking out a remote node which is renamed i am getting PathNotFoundException
Steps to reproduce :
Step1:
i had node at /content/cat/draft/node1
Step2:
Create versions say v1, v2,v3
Step3
Rename node from node1 to node2 now i have /content/cat/draft/node2
Step4
Create new version on the renamed node say v4, v5, the total versions created for this node is v1, v2, v3, v4, v5
Step5
Remote Connect to JCR using http://hostName:port/crx/server and get the jcrSession, and do some operations like read , and create new properties on node2 and save the session
Step6
Now restore node2 to node1 with version v2 as follows
Line1: VersionManager versionMgr = jcrSession.getWorkspace().getVersionManager();
Line2: String versionNodePath = "/jcr:system/jcr:versionStorage/fe/01/6b/fe016bad-b6c6-4216-9ee1-ee8c03b4549e/2.0";
Line3: Version versionToRestore = (Version)jcrSession.getNode(versionNodePath);
Line4: versionMgr.restore("/content/cat/draft/node1", versionToRestore , true);
Line5: versionMgr.checkout("/content/cat/draft/node1");
restore at line 4 works without any issue and i am able to see that content is restored to node1 (and node2 was deleted) but when trying to check out
at line5 system is throwing PathNotFoundException.
Just to confirm the issue again, between line4 and line5 i create new repository connection and got new session (not on existing repository) and did a check out then the node got checkout without error.
When i debugged the api what is found is the node iId in activity is still pointing to /content/cat/draft/node2 uri.
Thanks
Sanat.