Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24953

DocumentNotFoundException when restoring a version bound to deleted template

    XMLWordPrintable

    Details

    • Release Notes Summary:
      A version bound to a deleted template is restored without throwing an error.
    • Backlog priority:
      500
    • Sprint:
      nxcore 10.10.5
    • Story Points:
      3

      Description

      1. install Nuxeo (JSF UI)
      2. install nuxeo-template-rendering addon
      3. in Domain / Templates create 2 templates named myModel1 and myModel2
      4. create a workspace
      5. in the workspace create a document
      6. 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
      7. edit the document by modifying the description and save with a version increase (minor or major, is does not matter)
      8. in the Associated templates tab unbind myModel2 template
      9. delete the myModel2 template in Domain / Templates and purge it using the trash
      10. open the document
      11. restore a version by going to History / Archived Versions / Restore
      12. 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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d