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

Ignore children of folder in duplicate error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.9
    • Fix Version/s: 3.0.1
    • Component/s: Remote watcher

      Description

      Steps to reproduce :

      • server: create the folder Unisys
      • client: wait for sync
      • server: create the folder Unisys
      • client: wait for sync and check the dedup error
      • server: create the file foo.txt into the second folder Unisys
      • client: wait for sync

      Interesting traceback that comme again and again:

      2017-11-24 12:10:37 2992 3692 ERROR    nxdrive.engine.watcher.remote_watcher Unexpected error
      Traceback (most recent call last):
        File "nuxeo-drive-client\nxdrive\engine\watcher\remote_watcher.py", line 476, in _handle_changes
        File "nuxeo-drive-client\nxdrive\engine\watcher\remote_watcher.py", line 420, in _partial_full_scan
        File "nuxeo-drive-client\nxdrive\engine\watcher\remote_watcher.py", line 140, in _scan_pair
        File "nuxeo-drive-client\nxdrive\engine\watcher\remote_watcher.py", line 175, in _do_scan_remote
        File "nuxeo-drive-client\nxdrive\engine\watcher\remote_watcher.py", line 247, in _scan_remote_scroll
        File "nuxeo-drive-client\nxdrive\engine\watcher\remote_watcher.py", line 348, in _find_remote_child_match_or_create
        File "nuxeo-drive-client\nxdrive\client\local_client.py", line 684, in exists
        File "nuxeo-drive-client\nxdrive\client\local_client.py", line 773, in abspath
      ValueError: ('LocalClient expects ref starting with "/"', {'self': <LocalClient base_folder=u'C:\\Users\\Guest\\Documents\\Nuxeo Drive 2', duplication_enabled=True, is_case_sensitive=False, ignored_prefixes=('.', 'Icon\r', 'Thumbs.db', 'desktop.ini', '~$'), ignored_suffixes=('.LOCK', '.bak', '.crdownload', '.dwl', '.dwl2', '.lock', '.nxpart', '.part', '.partial', '.swp', '.tmp', '~')>, 'ref': u''})
      

      With NXDRIVE-842, when a duplicate document appears, we remove its local_path to prevent unwanted changes by other documents. But when trying to sync a children of a folder in duplicate error, calling LocalClient.exists(parent_pair.local_path) will fail with the error below.

      The fix is to ignore children of a folder in duplicate error.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 4 hours, 10 minutes
                2d 4h 10m