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

Bypass all OS errors in disk_space()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.4.4
    • Fix Version/s: 5.1.1
    • Component/s: Framework
    • Epic Link:
    • Tags:
    • Sprint:
      nxDrive 11.2.16, nxDrive 11.2.17
    • Story Points:
      1

      Description

      Sentry Issue: NUXEO-DRIVE-4DZ

      OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect
        File "nxdrive\gui\api.py", line 578, in get_free_disk_space
        File "nxdrive\utils.py", line 103, in disk_space
        File "shutil.py", line 1037, in disk_usage
      

      The bad path was WindowsPath(":/Users/USER/Documents/Nuxeo Drive").

      We should filter out all OSError and not just FileNotFoundError.

        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 - 30 minutes
                  30m

                    PagerDuty