Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1786

Handle corrupted downloads in Direct Edit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.3
    • Fix Version/s: 4.4.4
    • Component/s: Direct Edit
    • Release Notes Summary:
      Corrupted downloads during DirectEdit are now handled
    • Release Notes Description:
      Hide

      During a Direct Edit, it may happen that the downloaded file ends up corrupted.
      The download was aborted without informing the user of what happened and the Direct Edit'ion canceled.
      The download is now retried multiple times when Drive detects such case. On each and every try, the user will be informed of the error via a notification. If the download still fails after 3 tries, the user will be notified that Direct Edit is impossible on the targeted document.

      Show
      During a Direct Edit, it may happen that the downloaded file ends up corrupted. The download was aborted without informing the user of what happened and the Direct Edit'ion canceled. The download is now retried multiple times when Drive detects such case. On each and every try, the user will be informed of the error via a notification. If the download still fails after 3 tries, the user will be notified that Direct Edit is impossible on the targeted document.
    • Epic Link:
    • Tags:
    • Sprint:
      nxDrive 11.1.31, nxDrive 11.1.32
    • Story Points:
      2

      Description

      Issue

      Sentry Issue: NUXEO-DRIVE-1WK

      CorruptedFile: CorruptedFile WindowsPath('$HOME/.nuxeo-drive/edit/DOCUID_file-content/.FILE.nxpart'): server digest is 'AAA', local digest is 'BBB'
      (3 additional frame(s) were not displayed)
      ...
        File "nxdrive\direct_edit.py", line 518, in edit
        File "nxdrive\direct_edit.py", line 461, in _prepare_edit
        File "nxdrive\direct_edit.py", line 325, in _download
        File "nxdrive\client\remote_client.py", line 226, in download
        File "nxdrive\client\remote_client.py", line 263, in check_integrity
      
      Thread EXCEPTION
      

      Fix

      We should display a notification and restart the download.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 2 days, 30 minutes
                  2d 30m