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

Fix download with WOPI integration

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF54, 2021.10
    • Component/s: WOPI
    • Release Notes Summary:
      Downloads in the WOPI iframe is allowed.
    • Backlog priority:
      500
    • Sprint:
      nxplatform #45

      Description

      There is an issue with WOPI integration where Microsoft tested the "Download" functionnality, and they found a little bug : The end-user needs to refresh the browser to download the file.

      An easy workaround to fix it is to add the property "allow-downloads" to the sandbox attribute of the IFRAME loading the Office editor in the WOPI Host Page.

       

      Making this change to https://github.com/nuxeo/nuxeo/blob/master/modules/platform/nuxeo-wopi/src/main/resources/web/nuxeo.war/wopi.jsp#L68 with

      // The sandbox attribute is needed to allow automatic redirection to the O365 sign-in page in the business user flow
       office_frame.setAttribute('sandbox', 'allow-scripts allow-same-origin allow-forms allow-popups allow-top-navigation allow-popups-to-escape-sandbox allow-downloads');

      has fixed the problem.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.