Skip to content

Non ascii char in user name create admin error when we try to check the user infos #67

@sylvain261

Description

@sylvain261

When i click in the admin on a nick containing accented char, we've got the following exception :

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/eventlet-0.9.10-py2.7.egg/eventlet/wsgi.py", line 335, in handle_one_response
result = self.application(self.environ, start_response)
File "/usr/lib/python2.7/site-packages/Paste-1.7.4-py2.7.egg/paste/urlmap.py", line 203, in call
return app(environ, start_response)
File "/usr/lib/python2.7/site-packages/hookbox-0.3.4dev-py2.7.egg/hookbox/admin/admin.py", line 54, in call
return self._wsgi_app(environ, start_response)
File "/usr/lib/python2.7/site-packages/Paste-1.7.4-py2.7.egg/paste/urlmap.py", line 203, in call
return app(environ, start_response)
File "build/bdist.linux-i686/egg/csp_eventlet/init.py", line 74, in call
x = handler(session, environ, start_response)
File "build/bdist.linux-i686/egg/csp_eventlet/init.py", line 94, in render_send
session.read(environ['csp.form'].get('d', ''))
File "build/bdist.linux-i686/egg/csp_eventlet/init.py", line 220, in read
packets = json.loads(rawdata)
File "/usr/lib/python2.7/json/init.py", line 310, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 346, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 362, in raw_decode
obj, end = self.scan_once(s, idx)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 4: invalid continuation byte

After that the admin is inconsistent (overview shows infos that does not appear in the detail list)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions