-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.1.4
-
Fix Version/s: 4.4.0
-
Component/s: Remote watcher
Error
Sentry Issue: NUXEO-DRIVE-26Z
ValueError: Invalid name 'Congés 2016 / 2017' File "nxdrive\engine\watcher\remote_watcher.py", line 613, in _handle_changes File "nxdrive\engine\activity.py", line 223, in func_wrapper File "nxdrive\engine\watcher\remote_watcher.py", line 890, in _update_remote_states File "pathlib.py", line 830, in with_name
Analysis
The error is at that line:
doc_pair.local_path.with_name(new_info.name)
The name is not filtered and so, when it contains invalid characters like "/", the error happens.
Fix
The name should be sanitized using the safe_filename() function.
- is caused by
-
NXDRIVE-980 Renaming files server-side to solve duplicate issues results in wrong local files count
- Resolved
- is related to
-
NXDRIVE-1790 ValueError: Invalid name '| > < ? * /.txt'
- Resolved