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

Fix encoding errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.0
    • Component/s: Framework

      Description

      2018-04-05 10:32:41 18990 140736677127104 TRACE    nxdrive.engine.queue_manager Init processors
      2018-04-05 10:32:41 18990 123145527889920 DEBUG    nxdrive.engine.processor Executing processor on <StateRow[2] local_path=u'/shared Fold\xe9r', remote_ref=u'defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76', local_state=u'synchronized', remote_state=u'modified', pair_state=u'remotely_modified', filter_path=None>(1)
      2018-04-05 10:32:41 18990 123145527889920 TRACE    nxdrive.engine.processor Calling _synchronize_remotely_modified() on doc pair <StateRow[2] local_path=u'/shared Fold\xe9r', remote_ref=u'defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76', local_state=u'synchronized', remote_state=u'modified', pair_state=u'remotely_modified', filter_path=None>
      2018-04-05 10:32:41 18990 123145527889920 TRACE    nxdrive.engine.processor Soft locking u'/shared Fold\xe9r'
      2018-04-05 10:32:41 18990 123145527889920 DEBUG    nxdrive.engine.processor is_remote_move: name=u'shared Folder', local=<StateRow[1] local_path=u'/', remote_ref=u'org.nuxeo.drive.service.impl.DefaultTopLevelFolderItemFactory#', local_state=u'synchronized', remote_state=u'synchronized', pair_state=u'synchronized', filter_path=None>, remote=<StateRow[1] local_path=u'/', remote_ref=u'org.nuxeo.drive.service.impl.DefaultTopLevelFolderItemFactory#', local_state=u'synchronized', remote_state=u'synchronized', pair_state=u'synchronized', filter_path=None>
      2018-04-05 10:32:41 18990 123145527889920 DEBUG    nxdrive.engine.engine Local Folder locking on u'/shared Fold\xe9r'
      2018-04-05 10:32:41 18990 123145527889920 DEBUG    nxdrive.engine.engine Local Folder lock setup completed on u'/shared Fold\xe9r'
      2018-04-05 10:32:41 18990 123145527889920 DEBUG    nxdrive.engine.processor Renaming local folder u'/Users/tiger-222/Nuxeo Drive/shared Fold\xe9r' to u'shared Folder'
      2018-04-05 10:32:41 18990 123145527889920 DEBUG    nxdrive.engine.engine Local Folder unlocking
      2018-04-05 10:32:41 18990 123145527889920 ERROR    nxdrive.engine.processor Unknown error
      Traceback (most recent call last):
        File "nxdrive/engine/processor.py", line 226, in _execute
          sync_handler(doc_pair, local_client, remote_client)
        File "nxdrive/engine/processor.py", line 934, in _synchronize_remotely_modified
          new_path)
        File "nxdrive/engine/dao/sqlite.py", line 1107, in update_local_parent_path
          path, count, self._get_recursive_condition(doc_pair)))
        File "nxdrive/engine/dao/sqlite.py", line 1054, in _get_recursive_condition
          "    OR local_parent_path = '{}')").format(path, path)
      UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)
      
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.engine.processor Soft locking u'/shared Fold\xe9r/shared fichi\xe9.ods'
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.engine.processor Readonly unlock: unlock on u'/shared Fold\xe9r' with 2
      2018-04-05 10:28:52 18514 123145338675200 DEBUG    nxdrive.engine.processor Creating local file u'shared fichi\xe9.ods' in u'/Users/tiger-222/Nuxeo Drive/shared Fold\xe9r'
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.client.base_automation_client Calling http://192.168.0.100:8080/nuxeo/site/automation/NuxeoDrive.GetFileSystemItem with headers {'X-Authentication-Token': 'fdb129d1-4b50-4d6f-97fc-167394bd3a3e', 'X-NXproperties': '*', 'X-NXDocumentProperties': '*', 'X-Device-Id': '4c06dbcc38ab11e89c3da8206614d809', 'Accept': 'application/json+nxentity, */*', 'User-Agent': 'Nuxeo Drive/3.1.0', 'X-User-Id': 'user2', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json+nxrequest', 'X-Application-Name': 'Nuxeo Drive', 'X-Client-Version': '3.1.0'}, cookies [Cookie(version=0, name='X-Authentication-Token', value='fdb129d1-4b50-4d6f-97fc-167394bd3a3e', port=None, port_specified=False, domain=u'192.168.0.100', domain_specified=False, domain_initial_dot=False, path='/nuxeo', path_specified=True, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}, rfc2109=False)] and JSON payload '{"params": {"id": "defaultFileSystemItemFactory#default#9987ef53-7593-4ae0-9605-518b65a43aa8", "parentId": "defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76"}}'
      2018-04-05 10:28:52 18514 123145329725440 TRACE    nxdrive.engine.watcher.local_watcher Queueing watchdog: <DirModifiedEvent: src_path='/Users/tiger-222/Nuxeo Drive'>
      2018-04-05 10:28:52 18514 123145329725440 TRACE    nxdrive.engine.watcher.local_watcher Queueing watchdog: <DirCreatedEvent: src_path='/Users/tiger-222/Nuxeo Drive/shared Folde\xcc\x81r'>
      2018-04-05 10:28:52 18514 123145319165952 DEBUG    nxdrive.engine.watcher.local_watcher Handling watchdog event [modified] on '/Users/tiger-222/Nuxeo Drive'
      2018-04-05 10:28:52 18514 123145319165952 DEBUG    nxdrive.engine.watcher.local_watcher Handling watchdog event [created] on '/Users/tiger-222/Nuxeo Drive/shared Folde\xcc\x81r'
      2018-04-05 10:28:52 18514 123145319165952 TRACE    nxdrive.engine.watcher.local_watcher Watchdog event <DirCreatedEvent: src_path='/Users/tiger-222/Nuxeo Drive/shared Folde\xcc\x81r'> on known pair <StateRow[2] local_path=u'/shared Fold\xe9r', remote_ref=u'defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76', local_state=u'synchronized', remote_state=u'synchronized', pair_state=u'synchronized', filter_path=None>
      2018-04-05 10:28:52 18514 123145319165952 DEBUG    nxdrive.engine.watcher.local_watcher Created event on a known pair with a remote_ref: <StateRow[2] local_path=u'/shared Fold\xe9r', remote_ref=u'defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76', local_state=u'synchronized', remote_state=u'synchronized', pair_state=u'synchronized', filter_path=None>
      2018-04-05 10:28:52 18514 123145319165952 TRACE    nxdrive.engine.dao.sqlite Updating local state for row=<StateRow[2] local_path=u'/shared Fold\xe9r', remote_ref=u'defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76', local_state=u'synchronized', remote_state=u'synchronized', pair_state='synchronized', filter_path=None> with info=FileInfo[/Users/tiger-222/Nuxeo Drive/shared Foldr, remote_ref=defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76]
      2018-04-05 10:28:52 18514 123145319165952 TRACE    nxdrive.engine.watcher.local_watcher Re-queuing acquired, released and refreshed state <StateRow[2] local_path=u'/shared Fold\xe9r', remote_ref=u'defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76', local_state=u'synchronized', remote_state=u'synchronized', pair_state=u'synchronized', filter_path=None>
      2018-04-05 10:28:52 18514 123145319165952 TRACE    nxdrive.engine.dao.sqlite Will not push pair: synchronized, pair=<StateRow[2] local_path=u'/shared Fold\xe9r', remote_ref=u'defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76', local_state=u'synchronized', remote_state=u'synchronized', pair_state=u'synchronized', filter_path=None>
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.client.base_automation_client Response for 'http://192.168.0.100:8080/nuxeo/site/automation/NuxeoDrive.GetFileSystemItem' with cookies [Cookie(version=0, name='X-Authentication-Token', value='fdb129d1-4b50-4d6f-97fc-167394bd3a3e', port=None, port_specified=False, domain=u'192.168.0.100', domain_specified=False, domain_initial_dot=False, path='/nuxeo', path_specified=True, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}, rfc2109=False)]: '{"id":"defaultFileSystemItemFactory#default#9987ef53-7593-4ae0-9605-518b65a43aa8","parentId":"defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76","name":"shared fichie\xcc\x81.ods","folder":false,"creator":"user1","lastContributor":"user1","creationDate":1522916484670,"lastModificationDate":1522916484670,"canRename":true,"canDelete":true,"lockInfo":null,"path":"/org.nuxeo.drive.service.impl.DefaultTopLevelFolderItemFactory#/defaultSyncRootFolderItemFactory#default#2eef172d-b780-4d8a-819f-9cc7b66a5f76/defaultFileSystemItemFactory#default#9987ef53-7593-4ae0-9605-518b65a43aa8","userName":"user2","downloadURL":"nxfile/default/9987ef53-7593-4ae0-9605-518b65a43aa8/blobholder:0/shared%20fichi%C3%A9.ods","digestAlgorithm":"MD5","digest":"36d816e9849727519e6302952491216e","canUpdate":true}'
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.client.base_automation_client Downloading file from u'http://192.168.0.100:8080/nuxeo/nxfile/default/9987ef53-7593-4ae0-9605-518b65a43aa8/blobholder:0/shared%20fichi%C3%A9.ods' to u'/Users/tiger-222/Nuxeo Drive/shared Fold\xe9r/.shared fichi\xe9.ods123145338675200.nxpart' with digest=36d816e9849727519e6302952491216e, digest_algorithm=md5
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.client.base_automation_client Calling 'http://192.168.0.100:8080/nuxeo/nxfile/default/9987ef53-7593-4ae0-9605-518b65a43aa8/blobholder:0/shared%20fichi%C3%A9.ods' with headers: {'X-Authentication-Token': 'fdb129d1-4b50-4d6f-97fc-167394bd3a3e', 'X-Device-Id': '4c06dbcc38ab11e89c3da8206614d809', 'User-Agent': 'Nuxeo Drive/3.1.0', 'X-User-Id': 'user2', 'Cache-Control': 'no-cache', 'X-Application-Name': 'Nuxeo Drive', 'X-Client-Version': '3.1.0'}
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.engine.processor Transfer speed 113 ko/s
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.client.local_client Setting xattr ndrive with value 'defaultFileSystemItemFactory#default#9987ef53-7593-4ae0-9605-518b65a43aa8' on u'/Users/tiger-222/Nuxeo Drive/shared Fold\xe9r/.shared fichi\xe9.ods123145338675200.nxpart'
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.client.local_client Setting file dates for u'/Users/tiger-222/Nuxeo Drive/shared Fold\xe9r/shared fichi\xe9.ods' (ctime=u'2018-04-05 10:21:24', mtime=u'2018-04-05 10:21:24')
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.engine.processor Readonly lock: update lock count on u'/shared Fold\xe9r' to 0
      2018-04-05 10:28:52 18514 123145338675200 TRACE    nxdrive.engine.processor Readonly lock: relocked u'/shared Fold\xe9r' with 2
      2018-04-05 10:28:52 18514 123145338675200 ERROR    nxdrive.engine.processor Unknown error
      Traceback (most recent call last):
        File "nxdrive/engine/processor.py", line 226, in _execute
        File "nxdrive/engine/processor.py", line 989, in _synchronize_remotely_created
        File "nxdrive/engine/processor.py", line 1058, in _create_remotely
        File "nxdrive/client/local_client.py", line 794, in change_file_date
      UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 40: 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, 30 minutes
                5h 30m