-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 4.1.2
-
Fix Version/s: 4.1.4
-
Component/s: Direct Edit
Update
By reading the pathlib documentation for Path.rename(), I realized that Unix systems force it even if the destination already exists, as long as they have permission (source).
The best solution is to just simulate that behavior on Windows as well.
Problem
NXDRIVE-1631 fixed an issue with normalization for the regular synchronization. We have the same problem with DirectEdit. We should also see how we can make the normalization steps clearer in the code.
Sentry Issue: NUXEO-DRIVE-Y1
FileExistsError: [WinError 183] Impossible de créer un fichier déjà existant: 'C:\\Users\\USER\\.nuxeo-drive\\edit\\UID_file-content\\TECNM-Hermosillo (V 03.04.19 validé partenaire)-vu DRIE.doc' -> 'C:\\Users\\USER\\.nuxeo-drive\\edit\\UID_file-content\\TECNM-Hermosillo (V 03.04.19 validé partenaire)-vu DRIE.doc' (5 additional frame(s) were not displayed) ... File "nxdrive\client\local_client.py", line 525, in _get_children_info File "nxdrive\client\local_client.py", line 436, in get_info File "nxdrive\client\local_client.py", line 84, in __init__ File "pathlib.py", line 1309, in rename File "pathlib.py", line 393, in wrapped Thread EXCEPTION
- is related to
-
NXDRIVE-1631 [Windows] Handle files with the same name but different unicode norms
- Resolved