Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-1171

Fix direct download URL failing with appended clientReason parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.18
    • Fix Version/s: 3.0.25, 3.1.2
    • Component/s: Web UI
    • Release Notes Summary:
      Fixed preview and download for images when using a CDN
    • Backlog priority:
      700
    • Team:
      UI
    • Sprint:
      UI - 2023-6
    • Story Points:
      3

      Description

      When DownloadService is configured to provide final download links, ELEMENTS-1544 appends a clientReason URL parameter to the link - this results in a 403 error if having set up S3 storage with Cloudfront distribution.

      Steps to Reproduce:
      1. In a Nuxeo instance configured with S3 storage & Cloudfront distribution, configure the following contribution:

        <require>org.nuxeo.ecm.core.io.download.DownloadService</require>
        <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
          <property name="org.nuxeo.download.url.follow.redirect">true</property>
        </extension>
      

      2. In Web UI, attempt to open a Document with a blob attachment.

      Expected behavior: Request URL accepted and successfully returns downloaded blob.

      Actual behavior: Request URL refused with a 403 error.

      AC

      If the URL for downloading the blob starts with the nuxeo base url, then the clientReason parameter should be appended
      If not, the clientReason parameter should NOT be added to the URL

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 1 hour
                  3d 1h