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

Fix logging issues with non-latin characters on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 4.0.0
    • Component/s: Framework
    • Environment:
      Windows

      Description

      --- Logging error ---
      Traceback (most recent call last):
        File "C:\Python36-32\lib\logging\__init__.py", line 994, in emit
          stream.write(msg)
        File "C:\Python36-32\lib\encodings\cp1252.py", line 19, in encode
          return codecs.charmap_encode(input,self.errors,encoding_table)[0]
      UnicodeEncodeError: 'charmap' codec can't encode characters in position 158-165: character maps to <undefined>
      Call stack:
        File "E:\nxdrive\engine\workers.py", line 175, in run
          self._execute()
        File "E:\nxdrive\engine\watcher\local_watcher.py", line 90, in _execute
          self._scan()
        File "E:\nxdrive\engine\activity.py", line 109, in func_wrapper
          func(*args, **kwargs)
        File "E:\nxdrive\engine\watcher\local_watcher.py", line 240, in _scan
          self._scan_recursive(info)
        File "E:\nxdrive\engine\watcher\local_watcher.py", line 597, in _scan_recursive
          self._scan_recursive(child_info)
        File "E:\nxdrive\engine\watcher\local_watcher.py", line 317, in _scan_recursive
          fs_children_info = client.get_children_info(info.path)
        File "E:\nxdrive\client\local_client.py", line 542, in get_children_info
          info = self.get_info(child_ref)
        File "E:\nxdrive\client\local_client.py", line 444, in get_info
          remote_ref = self.get_remote_id(ref)
        File "E:\nxdrive\client\local_client.py", line 394, in get_remote_id
          log.trace("Getting xattr %r from %r: %r", name, path, value)
        File "E:\nxdrive\logging_config.py", line 47, in trace
          self._log(TRACE, message, args, **kws)
      Message: 'Getting xattr %r from %r: %r'
      Arguments: ('ndrive', '\\\\?\\C:\\Users\\Windows10\\Documents\\Nuxeo Drive 4\\sdé f\\東京スカイツリー - Copie.jpg', 'defaultFileSystemItemFactory#default#e71a1d9c-db2b-4d01-98bd-5ba3fafe9481')
      --- Logging error ---
      Traceback (most recent call last):
        File "C:\Python36-32\lib\logging\__init__.py", line 994, in emit
          stream.write(msg)
        File "C:\Python36-32\lib\encodings\cp1252.py", line 19, in encode
          return codecs.charmap_encode(input,self.errors,encoding_table)[0]
      UnicodeEncodeError: 'charmap' codec can't encode characters in position 158-165: character maps to <undefined>
      Call stack:
        File "E:\nxdrive\engine\workers.py", line 175, in run
          self._execute()
        File "E:\nxdrive\engine\watcher\local_watcher.py", line 90, in _execute
          self._scan()
        File "E:\nxdrive\engine\activity.py", line 109, in func_wrapper
          func(*args, **kwargs)
        File "E:\nxdrive\engine\watcher\local_watcher.py", line 240, in _scan
          self._scan_recursive(info)
        File "E:\nxdrive\engine\watcher\local_watcher.py", line 597, in _scan_recursive
          self._scan_recursive(child_info)
        File "E:\nxdrive\engine\watcher\local_watcher.py", line 317, in _scan_recursive
          fs_children_info = client.get_children_info(info.path)
        File "E:\nxdrive\client\local_client.py", line 542, in get_children_info
          info = self.get_info(child_ref)
        File "E:\nxdrive\client\local_client.py", line 444, in get_info
          remote_ref = self.get_remote_id(ref)
        File "E:\nxdrive\client\local_client.py", line 394, in get_remote_id
          log.trace("Getting xattr %r from %r: %r", name, path, value)
        File "E:\nxdrive\logging_config.py", line 47, in trace
          self._log(TRACE, message, args, **kws)
      Message: 'Getting xattr %r from %r: %r'
      Arguments: ('ndrive', '\\\\?\\C:\\Users\\Windows10\\Documents\\Nuxeo Drive 4\\sdé f\\東京スカイツリー.jpg', 'defaultFileSystemItemFactory#default#2a8721ee-963e-4c11-b432-66100017a8d4')
      

        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 - 1 hour
                1h