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

[Windows] Ignore FS moves with no source path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.4.2
    • Component/s: Local watcher

      Description

      Issue

      Sentry Issue: NUXEO-DRIVE-2JP

      ValueError: WindowsPath('.') has an empty name
        File "nxdrive\engine\watcher\local_watcher.py", line 983, in handle_watchdog_event
        File "nxdrive\utils.py", line 523, in normalize_event_filename
        File "pathlib.py", line 826, in with_name
      

      Logs are showing those lines before the exception (both same error):

      Handling watchdog event [moved] on None to 'C:\\Users\\USER\\Documents\\folder
      subsolder'

      Handling watchdog event [moved] on '' to 'C:\\Users\\USER\\Documents\\folder\\subfolder1
      subfolder2'

      Analysis

      The cause is that the FS event has first the source path on the NTFS stream (c:\folder\file.ext:nxdrive). Then it triggers more events but this time without source path.
      How it happens is not yet known.

        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