-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 2.5.9
-
Fix Version/s: 3.0.1
-
Component/s: Remote watcher
-
Tags:
-
Sprint:nxMS 9.10.1, nxMS 9.10.2
-
Story Points:3
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.