Project

General

Profile

Bug #8609

Unicode error on log format string

Added by Benjamin Dauvergne over 5 years ago. Updated about 3 years ago.

Status:
Fermé
Priority:
Normal
Category:
-
Target version:
Start date:
12 Oct 2015
Due date:
% Done:

100%

Estimated time:
Patch proposed:
Yes
Planning:

Description

Internal Server Error: /accounts/password/reset/confirm/Nw/45x-c04e7e9ac12022e0f02b/
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/authentic2/profile_views.py", line 94, in dispatch
*kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 173, in post
return self.form_valid(form)
File "/usr/lib/python2.7/dist-packages/authentic2/profile_views.py", line 113, in form_valid
self.token[:9])
File "/usr/lib/python2.7/logging/__init__.py", line 1148, in info
self._log(INFO, msg, args, **kwargs)
File "/usr/lib/python2.7/logging/__init__.py", line 1267, in log
self.handle(record)
File "/usr/lib/python2.7/logging/
_init__.py", line 1277, in handle
self.callHandlers(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1317, in callHandlers
hdlr.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 748, in handle
self.emit(record)
File "/usr/lib/python2.7/logging/handlers.py", line 828, in emit
msg = self.format(record) + '\000'
File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
msg = msg % self.args
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)

Log strings must all be unicode to accept unicode parameters.


Files

Associated revisions

Revision 352f1d0e (diff)
Added by Benjamin Dauvergne over 5 years ago

profile_views,profile_forms: fix unicode error in log string (fixes #8609)

Also modify reset password test to get a non-regression test.

History

#1

Updated by Benjamin Dauvergne over 5 years ago

#2

Updated by Benjamin Dauvergne over 5 years ago

  • Status changed from En cours to Résolu (à déployer)
  • % Done changed from 0 to 100
#3

Updated by Benjamin Dauvergne about 5 years ago

  • Status changed from Résolu (à déployer) to Solution déployée
#4

Updated by Benjamin Dauvergne about 3 years ago

  • Status changed from Solution déployée to Fermé

Also available in: Atom PDF