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

Use the UTF-8 encoding when saving the configuration file

    XMLWordPrintable

    Details

    • Story Points:
      1

      Description

      Here is the revelant error (see on Sentry):

      UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 25: ordinal not in range(128)
        File "nxdrive/manager.py", line 529, in set_feature_state
        File "nxdrive/utils.py", line 1080, in save_config
        File "configparser.py", line 697, in read
        File "configparser.py", line 1017, in _read
        File "/.../encodings/ascii.py", line 26, in decode
      

      The data we are trying to save is:

      b'[DEFAULT]\nenv = features\n\xe2\x80\x8b\n[features]\nfeature_direct_transfer = False\nfeature_s3 = True\ndisabled_file_integrity_check = true\n\xe2\x80\x8b\n\n'
      

      And the encoding is US-ASCII.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m