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

Remote rename of an accentued folder fails on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0.2
    • Component/s: Local client

      Description

      As Windows is case insensitive, remotely changing the case of a folder which contains accentued characters always fails on encoding error:

      2017-12-07 08:39:32 2668 8204 DEBUG    nxdrive.engine.processor Executing processor on <StateRow[13991] local_path=u'/35BA-0866-ALENCON-CHIC-Projet H\xe9modialyse/05_Etudes/05-APD/Rendu OTEIS/Pi\xe8ces graphiques', remote_ref=u'defaultFileSystemItemFactory#default#16407b4d-60e5-4163-a016-8d6a2b098562', local_state=u'synchronized', remote_state=u'modified', pair_state=u'remotely_modified'>(1293)
      2017-12-07 08:39:32 2668 8204 DEBUG    nxdrive.engine.processor is_remote_move: local:<StateRow[12199] local_path=u'/35BA-0866-ALENCON-CHIC-Projet H\xe9modialyse/05_Etudes/05-APD/Rendu OTEIS', remote_ref=u'defaultFileSystemItemFactory#default#c743e352-d20e-4bf7-9d18-20698fdd35de', local_state=u'synchronized', remote_state=u'synchronized', pair_state=u'synchronized'> remote:<StateRow[12199] local_path=u'/35BA-0866-ALENCON-CHIC-Projet H\xe9modialyse/05_Etudes/05-APD/Rendu OTEIS', remote_ref=u'defaultFileSystemItemFactory#default#c743e352-d20e-4bf7-9d18-20698fdd35de', local_state=u'synchronized', remote_state=u'synchronized', pair_state=u'synchronized'>
      2017-12-07 08:39:32 2668 8204 DEBUG    nxdrive.engine.engine Local Folder locking on '/35BA-0866-ALENCON-CHIC-Projet Hémodialyse/05_Etudes/05-APD/Rendu OTEIS/Pièces graphiques'
      2017-12-07 08:39:32 2668 8204 DEBUG    nxdrive.engine.engine Local Folder lock setup completed on '/35BA-0866-ALENCON-CHIC-Projet Hémodialyse/05_Etudes/05-APD/Rendu OTEIS/Pièces graphiques'
      2017-12-07 08:39:32 2668 8204 DEBUG    nxdrive.engine.processor Renaming local folder u'\\\\?\\C:\\NuxeoDrive\\35BA-0866-ALENCON-CHIC-Projet H\xe9modialyse\\05_Etudes\\05-APD\\Rendu OTEIS\\Pi\xe8ces graphiques' to u'Pi\xe8ces Graphiques'
      2017-12-07 08:39:32 2668 8204 DEBUG    nxdrive.engine.engine Local Folder unlocking
      2017-12-07 08:39:32 2668 8204 ERROR    nxdrive.engine.processor Unknown error
      Traceback (most recent call last):
        File "nuxeo-drive-client\nxdrive\engine\processor.py", line 269, in _execute
        File "nuxeo-drive-client\nxdrive\engine\processor.py", line 898, in _synchronize_remotely_modified
        File "nuxeo-drive-client\nxdrive\client\local_client.py", line 781, in rename
      UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 49: ordinal not in range(128)
      2017-12-07 08:39:32 2668 8204 DEBUG    nxdrive.engine.workers Increasing error [SYNC_HANDLER__synchronize_remotely_modified] ("UnicodeEncodeError('ascii', u'\\\\\\\\?\\\\C:\\\\NuxeoDrive\\\\35BA-0866-ALENCON-CHIC-Projet H\\xe9modialyse\\\\05_Etudes\\\\05-APD\\\\Rendu OTEIS', 49, 50, 'ordinal not in range(128)')") for <StateRow[13991] local_path=u'/35BA-0866-ALENCON-CHIC-Projet H\xe9modialyse/05_Etudes/05-APD/Rendu OTEIS/Pi\xe8ces graphiques', remote_ref=u'defaultFileSystemItemFactory#default#16407b4d-60e5-4163-a016-8d6a2b098562', local_state=u'synchronized', remote_state=u'modified', pair_state=u'remotely_modified'>
      2017-12-07 08:39:32 2668 8204 DEBUG    nxdrive.engine.queue_manager Giving up on pair : <StateRow[13991] local_path=u'/35BA-0866-ALENCON-CHIC-Projet H\xe9modialyse/05_Etudes/05-APD/Rendu OTEIS/Pi\xe8ces graphiques', remote_ref=u'defaultFileSystemItemFactory#default#16407b4d-60e5-4163-a016-8d6a2b098562', local_state=u'synchronized', remote_state=u'modified', pair_state=u'remotely_modified'>
      

        Attachments

          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 - 4 hours, 10 minutes
                4h 10m