Moderation view assumes ascii codec for LP user names
Bug #741909 reported by
Michael Nelson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ratings and Reviews server |
Fix Released
|
High
|
Danny Tamez |
Bug Description
Steps to reproduce:
1) Ensure review is flagged by someone with a non-ascii chars in their name (or the review is written by such a person),
2) As a moderator, access the moderations view, eg: https:/
The moderation view is currently failing on staging for this reason with:
File "/usr/lib/
escape(
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)
Related branches
lp:~zematynnad/rnr-server/non_ascii_741909
- Michael Nelson (community): Approve
-
Diff: 43 lines (+17/-1)2 files modifiedsrc/reviewsapp/templatetags/reviewsapp.py (+1/-1)
src/reviewsapp/tests/test_views.py (+16/-0)
description: | updated |
Changed in rnr-server: | |
importance: | Undecided → High |
Changed in rnr-server: | |
assignee: | nobody → Danny Tamez (zematynnad) |
status: | New → In Progress |
Changed in rnr-server: | |
status: | In Progress → Fix Committed |
Changed in rnr-server: | |
milestone: | none → 11.03 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I QA'd this on the daily server by first (before deploying the fix):
1) Updated my own user's first name to include unicode chars: http:// pastebin. ubuntu. com/585246/ (I can't update my own record via the admin as Django doesn't like my username) 184.82. 116.62/ reviews/ moderations/ breaks as on staging 184.82. 116.62/ reviews/ moderations/ now displays my unicode name (as shown in attached image).
2) Verified that the view http://
3) Deployed again to the daily server (with danny's fix)
4) Verified that the view http://