Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1630

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: UI

      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

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 1 day, 3 hours
                  1d 3h