-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 7.10, 8.10, 9.10, 10.1
-
Component/s: Core, Template Rendering
-
Release Notes Summary:A version bound to a deleted template is restored without throwing an error.
-
Tags:
-
Backlog priority:500
-
Sprint:nxcore 10.10.5
-
Story Points:3
- install Nuxeo (JSF UI)
- install nuxeo-template-rendering addon
- in Domain / Templates create 2 templates named myModel1 and myModel2
- create a workspace
- in the workspace create a document
- bind both models to the document:
- the first one using the icon on top right zone of the summary page
- the second one using the Associated templates tab
- edit the document by modifying the description and save with a version increase (minor or major, is does not matter)
- in the Associated templates tab unbind myModel2 template
- delete the myModel2 template in Domain / Templates and purge it using the trash
- open the document
- restore a version by going to History / Archived Versions / Restore
- this generates a DocumentNotFoundException matching the uuid of the deleted template
Expected Result: there should not be any error and the document should be restored.
Other possible solution: This could also mean to prevent the deletion of a model if it is used in a document version.
Issue verified version: 7.10-HF39 to 10.1