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

Filter out the WinError 123 (about long file names too long)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.1.4
    • Component/s: Synchronizer

      Description

      Issue

      Sentry Issue: NUXEO-DRIVE-V1

      OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '\\\\?\\C:\\Users\\user\\Documents\\Nuxeo Drive\\folder\\very-long-file-name.txt'
      (3 additional frame(s) were not displayed)
      ...
        File "nxdrive\client\local_client.py", line 566, in get_new_file
        File "nxdrive\client\local_client.py", line 756, in _abspath_deduped
        File "pathlib.py", line 1336, in exists
        File "pathlib.py", line 1158, in stat
        File "pathlib.py", line 387, in wrapped
      

      Fix

      We need to filter out the errno in the Processor. There already is a list of ignored errnos, we should extract them to a constant, let's say LONG_FILE_ERRORS.

        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 hours
                  2h