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

Make the preview enricher add viewUrl and downloadUrl

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 2021.29
    • Fix Version/s: None
    • Component/s: Rest API

      Description

      After implementing ELEMENTS-1572 to distinguish views from downloads, the elements are using 2 new properties "viewUrl" and "downloadUrl".

      Some elements (maybe only nuxeo-document) are extending the response to add 2 new properties to the Document object from the "preview" context parameter. But when the documents are returned by another element (like nuxeo-page-provider), the "preview" context parameter is not extended and the Nuxeo elements will fail because they cannot find "viewUrl" or "downloadUrl".

      A simple solution to handle this problem is to make the Preview enricher compute viewUrl and downloadUrl and put them to the JSON response

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmartins Thierry Martins
                Reporter:
                tmartins Thierry Martins
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: