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

Fix download context for renditions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF65, 2021.25
    • Component/s: Renditions
    • Release Notes Summary:
      Added a new DownloadContextBlobHolder and its writer for download permissions checking.
    • Backlog priority:
      900
    • Sprint:
      nxplatform #68
    • Story Points:
      5

      Description

      Currently the dowload context for renditions does not include the DocumentModel.

      So if one contributes to the "permissions" extension of the DownloadService, it will fail because the doc is null.

      We need to find a way to encapsulate the DocumentModel in the object returned by RenditionObject#doGet and then add this document to the DownloadContext at https://github.com/nuxeo/nuxeo/blob/10.10/nuxeo-webengine/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/model/io/BlobWriter.java#L97-L100

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: