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

[Windows] Fix renaming

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.4
    • Component/s: Direct Edit
    • Epic Link:
    • Tags:
    • Sprint:
      nxDrive 11.1.10, nxDrive 11.1.11
    • Story Points:
      2

      Description

      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
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 5 hours
                  1d 5h