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

Fix legal hold can not be set on a flexible record

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Retention

      Description

      Login as an administrator
      Create a rule
      Use the REST API to update the rule and set the following property to true
      retention_rule:flexibleRecords
      Login as a user that has the ManageRecord permission on a workspace
      Create a document of type File in said workspace
      Upload a main file into it, ensure that this file is not used within another document
      Attach a rule that uses flexible retention to the document

      Access document through the REST API
      => isFlexibleRecord is set to true

      Put the document under legal hold
      => legal hold can not be set on the document

      nuxeo            | ****** chain ******
      nuxeo            | Name: Document.Hold
      nuxeo            | Exception: DocumentSecurityException
      nuxeo            | Caught error: Failed to invoke operation Document.Hold, Cannot change blob from document 9b6737ad-7000-40d4-b145-d09d6773e1f4, it is under retention / hold
      nuxeo            | Caused by: org.nuxeo.ecm.core.api.DocumentSecurityException: Failed to invoke operation Document.Hold, Cannot change blob from document 9b6737ad-7000-40d4-b145-d09d6773e1f4, it is under retention / hold
      nuxeo            | ****** Hierarchy calls ******
      nuxeo            | 	org.nuxeo.retention.operations.HoldDocument
      

      Expected: legal hold can be set on the document as described in NXP-31881

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bchauvin Bertrand Chauvin
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: