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

Fix LocalClient on Windows when a file does not exist anymore and the FS cache is not up-to-date

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.4.2
    • Component/s: Local client

      Description

      In LocalClient.is_ignored method, this snippet:

      if not os.path.exists(path):
          return False
      attrs = win32api.GetFileAttributes(path)
      

      can end on a weird exception due to FS cache:

      Traceback (most recent call last):
        File "nuxeo-drive-client\nxdrive\engine\workers.py", line 180, in run
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 114, in _execute
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 252, in _scan
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 520, in _scan_recursive
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 532, in _push_to_scan
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 520, in _scan_recursive
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 532, in _push_to_scan
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 520, in _scan_recursive
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 532, in _push_to_scan
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 520, in _scan_recursive
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 532, in _push_to_scan
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 520, in _scan_recursive
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 532, in _push_to_scan
        File "nuxeo-drive-client\nxdrive\engine\watcher\local_watcher.py", line 330, in _scan_recursive
        File "nuxeo-drive-client\nxdrive\client\local_client.py", line 507, in get_children_info
        File "nuxeo-drive-client\nxdrive\client\local_client.py", line 481, in is_ignored
      error: (2, 'GetFileAttributes', 'The system cannot find the file specified.')
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: