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

Fix inline parameter not working when direct download enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2021, 2023.0
    • Fix Version/s: 2025.x, 2023.17, 2021.59
    • Component/s: S3
    • Release Notes Summary:
      Blobs are now displayed in the browser with inline parameter and S3 direct download
    • Backlog priority:
      650
    • Sprint:
      nxplatform #119
    • Story Points:
      3

      Description

      According to this documentation: https://doc.nuxeo.com/nxdoc/downloading-files/, using the inline parameter in the url will show the blob in the browser. When s3 direct download is enabled, the inline parameter doesn't seem to be taken into account and the blob is downloaded rather then being shown in the browser.

      Steps to reproduce:

      1. On a Nuxeo instance configured with S3 storage, enable direct download using the following nuxeo.conf parameters:
        nuxeo.s3storage.directdownload=true
        nuxeo.s3storage.directdownload.expire=120
      2. In browser, attempt to navigate to a Document's main file download URL and append "?inline=true", for example:
        http://localhost:8080/nuxeo/nxfile/default/002253db-4f84-4004-83c5-35898f4dc6aa/file:content/sample.png?inline=true

      Expected result: main Document blob is downloaded and displays in-browser

      Actual result: the blob is downloaded without displaying in-browser (as if inline=true was never passed)

      Note: disabling direct download will result in the inline parameter being properly applied.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: