Uploaded image for project: 'Hue'
  1. Hue
  2. HUE-6115

[core] Document paths have encoding problems

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: core.backend
    • Labels:
      None

      Description

      Just opening home page:

      [23/Mar/2017 14:13:59 -0700] api2         ERROR    Error running <function get_document at 0x7f7de807aaa0>
      Traceback (most recent call last):
        File "/home/romain/projects/hue/desktop/core/src/desktop/api2.py", line 55, in decorator
          return func(*args, **kwargs)
        File "/home/romain/projects/hue/desktop/core/src/desktop/api2.py", line 179, in get_document
          response = _get_document_helper(request, uuid, with_data, with_dependencies, path)
        File "/home/romain/projects/hue/desktop/core/src/desktop/api2.py", line 241, in _get_document_helper
          response['children'] = [doc.to_dict() for doc in response['children']]
        File "/home/romain/projects/hue/desktop/core/src/desktop/models.py", line 1149, in to_dict
          'path': urlencode(self.path or '/'),
        File "/home/romain/projects/hue/desktop/core/src/desktop/models.py", line 1077, in path
          quoted_name = urllib.quote(self.name)
        File "/usr/lib/python2.7/urllib.py", line 1288, in quote
          return ''.join(map(quoter, s))
      KeyError: u'\xe9'
      [23/Mar/2017 14:13:59 -0700] urllib       WARNING  /usr/lib/python2.7/urllib.py:1288: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
        return ''.join(map(quoter, s))
      [23/Mar/2017 14:13:59 -0700] access       INFO     127.0.0.1 romain - "GET /desktop/api2/doc/ HTTP/1.1"
      

        Attachments

          Activity

            People

            • Assignee:
              jennykim Jenny Kim
              Reporter:
              romain Romain Rigaux
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: