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

Cannot unsync an accentued root

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.9
    • Fix Version/s: 3.0
    • Component/s: Synchronizer

      Description

      Steps:

      1. server: synchronize a root containing accents
      2. client: wait for synchronization
      3. server: unsync the root
      4. client: wait for synchronization

      Actual result:

      • Nothing.

      Expected result:

      • Drive should remove locally the root.

      In the logs, we can find:

      2017-11-20 13:53:59 1484 2148 DEBUG    nxdrive.engine.watcher.remote_watcher Handle remote changes, first_pass=False
      2017-11-20 13:54:01 1484 2148 DEBUG    nxdrive.engine.watcher.remote_watcher Push doc_pair u'/72BA-0682-BLOIS-CH-MOE R\xe9seaux ECS' in delete queue
      2017-11-20 13:54:01 1484 2148 DEBUG    nxdrive.engine.watcher.remote_watcher Marking doc_pair '<StateRow[7] local_path=u'/72BA-0682-BLOIS-CH-MOE R\xe9seaux ECS', remote_ref=u'defaultSyncRootFolderItemFactory#default#3c86441a-e909-4731-b866-5ff2cd13a97d', local_state=u'synchronized', remote_state=u'synchronized', pair_state=u'synchronized'>' as deleted
      2017-11-20 13:54:01 1484 2148 ERROR    nxdrive.engine.watcher.remote_watcher Unexpected error
      Traceback (most recent call last):
        File "e:\nuxeo-drive-client\nxdrive\engine\watcher\remote_watcher.py", line 487, in _handle_changes
          self._update_remote_states()
        File "e:\nuxeo-drive-client\nxdrive\engine\watcher\remote_watcher.py", line 759, in _update_remote_states
          self._dao.delete_remote_state(delete_pair)
        File "e:\nuxeo-drive-client\nxdrive\engine\dao\sqlite.py", line 666, in delete_remote_state
          c.execute(update + self._get_recursive_remote_condition(doc_pair), ('parent_remotely_deleted',))
        File "e:\nuxeo-drive-client\nxdrive\engine\dao\sqlite.py", line 987, in _get_recursive_remote_condition
          '       OR remote_parent_path = "{0}"').format(remote_path)
      UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 88: ordinal not in range(128)
      

        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 - 5 hours, 50 minutes
                5h 50m