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

Fix external permissions link behavior

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.3-SNAPSHOT, 10.10
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Web UI

      Description

      Steps to reproduce:

      • Configure email notifications on the Nuxeo instance.
      • As a poweruser, navigate to a File document.
      • Click on the Permissions tab and click the New button on the PERMISSIONS ASSIGNED TO EXTERNAL USERS section.
      • Enter an email address.
      • Set the From date to today and the To date to tomorrow.
      • Click on the Create button.
        => Notification email with link to document should be sent.
      • Right-click on the link to copy the link address.

      In Firefox:

      • Open a private browser and paste the link.
        => User is taken to infinitely loading Web UI landing page with broken Nuxeo icon. (see attached screenshot Firefox-1.png)
        => Warnings in console (see attached screenshot Firefox-1-logs.png)
      • Open another tab in the same browser and paste the link again.
        => Redirected to http://nightly-rainforest.nuxeo.com/nuxeo/ui/images/touch/favicon-16x16.png#!/doc/default/3e0540bc-ce3a-4708-8790-0f4d256aa341 and the Nuxeo favicon is displayed (see attached screenshot Firefox-2.png).
      • Open another tab in the same browser and paste the link again.
        => File loads as expected (see attached screenshot Firefox-3.png).

      In Chrome & Edge:

      In Safari:

      • Open a private browser and paste the link.
        => User is taken to infinitely loading Web UI landing page with broken Nuxeo icon. (see attached screenshot Safari-1.png)
        => Errors in console (see attached screenshot Safari-1-logs.png)
      • Go to the tab where you are logged as poweruser, logout, paste the link
        => File loads as expected (see attached screenshot Safari-2.png)

      Other information:

      This bug was discovered while trying to reproduce a problem found in the crowdtesting platform's VMs on real devices.

      In the Rainforest VMs, when the tester receives the notification email and clicks on the link to the document, the testers are redirected to http://nightly-rainforest.nuxeo.com/nuxeo/ui/sw.js?ts=<some_random_number_maybe_a_token>#!/doc/default/<doc_Id> (http://nightly-rainforest.nuxeo.com/nuxeo/ui/sw.js?ts=1536728372604#!/doc/default/56e019f2-bdc2-4272-a372-bf147ea11f35, for example) which displays the code for the service worker (see attached screenshot service-worker.png).

      On the Rainforest VMs, this is consistently reproduced in Chrome, Edge and Safari, but not Firefox.

      On real devices, we have only managed to produce this once on Firefox. Every other time, we reproduced the results mentioned in the reproduction steps above.

        Attachments

        1. Chrome-1.png
          171 kB
          Karin Touchie
        2. Chrome-1-logs.png
          367 kB
          Karin Touchie
        3. Chrome-2.png
          881 kB
          Karin Touchie
        4. Chrome-3.png
          486 kB
          Karin Touchie
        5. Firefox-1.png
          171 kB
          Karin Touchie
        6. Firefox-1-logs.png
          199 kB
          Karin Touchie
        7. Firefox-2.png
          299 kB
          Karin Touchie
        8. Firefox-3.png
          383 kB
          Karin Touchie
        9. Safari-1.png
          172 kB
          Fábio Santos
        10. Safari-1-logs.png
          447 kB
          Fábio Santos
        11. Safari-2.png
          683 kB
          Fábio Santos
        12. service-worker.png
          93 kB
          Karin Touchie

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 3 hours, 5 minutes
                  1d 3h 5m