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

Hide Move to Cold Storage actions on Document versions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: ADDONS_10.10, ADDONS_2021
    • Fix Version/s: ADDONS_10.10, ADDONS_2021
    • Component/s: ColdStorage

      Description

      Steps to reproduce:

      1. In Web UI with Nuxeo Cold Storage addon installed, create a new Document with attached blob (e.g. Picture).
      2. Version the document (for example: create major version 1.0, make changes/replace blob, create major version 2.0)
      3. Make a query to view Document versions, for example in NXQL search:
        SELECT * FROM Document WHERE ecm:isVersion = 1
        
      1. Attempt to

      Expected result: actions to send files to Cold Storage should not appear for Document versions.

      Actual result: clicking either button results in an error toast being displayed to the user and the following error logged in console:

      ****** chain ******
      Name: Document.MoveToColdStorage
      Exception: PropertyException
      Caught error: Failed to invoke operation Document.MoveToColdStorage, Cannot set property on a version: content
      Caused by: org.nuxeo.ecm.core.api.PropertyException: Failed to invoke operation Document.MoveToColdStorage, Cannot set property on a version: content
      ****** Hierarchy calls ******
              org.nuxeo.coldstorage.operations.MoveToColdStorage
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: