-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 7.10
-
Fix Version/s: 8.3
-
Component/s: Tree Snapshot
-
Tags:
-
Backlog priority:600
-
Sprint:nxfit 8.3.4
-
Story Points:5
Steps to reproduce
- copy to nxserver/bundles the 3 jars attached to this ticket: the default nuxeo-tree-snapshot-7.10.jar and some addons to provide a button to create snapshots
- Inside Default domain > Workspaces, create a Workspace whose name is "workspace", and inside "workspace", create a new Workspace whose name is "Work"
- navigate to Default domain > Workspaces > workspace
- click on "CreateTreeSnapshot" button
- a snapshot is created and you can see in the content view the version is incremented to 1.0
- create a wokspace whose name is TestFolder1 under Default domain > Workspaces > workspace > Work
- navigate to Default domain > Workspaces > workspace
- click on "CreateTreeSnapshot" button
- a snapshot is created and you can see in the content view the version is incremented to 2.0
- create a wokspace whose name is TestFolder2 under Default domain > Workspaces > workspace > Work
- navigate to Default domain > Workspaces > workspace
- click on "CreateTreeSnapshot" button
- a snapshot is created and you can see in the content view the version is incremented to 3.0
- Go to History tab and then to Archived versions sub-tab
- Restore Version 2.0
- you can see in the content view the version for the Work document 2.0 as expected
- create a wokspace whose name is TestFolder3 under Default domain > Workspaces > workspace > Work
- navigate to Default domain > Workspaces > workspace
- click on "CreateTreeSnapshot" button
- a snapshot is created and you can see in the content view the version is incremented to 4.0
- Go to History tab and then to Archived versions sub-tab
- Restore Version 3.0
=> it produces an error, with DocumentNotFoundException
8790075d-b79b-40dd-bca9-1f418a9c53af javax.servlet.ServletException: On requestURL: http://nereid2:8080/nuxeo/view_documents.faces at org.nuxeo.ecm.platform.ui.web.rest.FancyURLFilter.doFilter(FancyURLFilter.java:134) Caused by: javax.servlet.ServletException: org.nuxeo.ecm.core.api.DocumentNotFoundException: 8790075d-b79b-40dd-bca9-1f418a9c53af Caused by: javax.faces.el.EvaluationException: org.nuxeo.ecm.core.api.DocumentNotFoundException: 8790075d-b79b-40dd-bca9-1f418a9c53af ... 62 more Caused by: org.nuxeo.ecm.core.api.DocumentNotFoundException: 8790075d-b79b-40dd-bca9-1f418a9c53af at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getDocumentByUUID(SQLSession.java:171) at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:326) at org.nuxeo.ecm.core.api.AbstractSession.getDocuments(AbstractSession.java:949) at org.nuxeo.snapshot.SnapshotableAdapter.getChildren(SnapshotableAdapter.java:175) at org.nuxeo.snapshot.SnapshotableAdapter.restore(SnapshotableAdapter.java:285) at org.nuxeo.snapshot.SnapshotableAdapter.restore(SnapshotableAdapter.java:325) at org.nuxeo.snapshot.SnapshotableAdapter.restore(SnapshotableAdapter.java:340) at org.nuxeo.snapshot.bean.VFolderActionBean.restoreToVersion(VFolderActionBean.java:40)