Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sylvain261 opened this issue Sep 14, 2010 · 0 comments

Comments

@sylvain261
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant