Closed
Bug 1141410
Opened 10 years ago
Closed 10 years ago
[traceback] UnicodeDecodeError when putting together url invalid error
Categories
(Input Graveyard :: Code Quality, defect, P2)
Input Graveyard
Code Quality
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: willkg, Assigned: lgp171188, Mentored)
Details
(Whiteboard: u=user c=feedback p= s=input.2015q1)
Saw a couple of these over the last month:
...
File "/data/www/input.mozilla.org/input/vendor/src/django-rest-framework/rest_framework/serializers.py", line 546, in errors
ret = self.from_native(data, files)
File "/data/www/input.mozilla.org/input/vendor/src/django-rest-framework/rest_framework/serializers.py", line 374, in from_native
attrs = self.perform_validation(attrs)
File "/data/www/input.mozilla.org/input/vendor/src/django-rest-framework/rest_framework/serializers.py", line 307, in perform_validation
attrs = validate_method(attrs, source)
File "/data/www/input.mozilla.org/input/fjord/feedback/models.py", line 662, in validate_url
'{0} is not a valid url'.format(value))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 8: ordinal not in range(128)
Need to fix that so it handles urls correctly.
Reporter | ||
Comment 1•10 years ago
|
||
Making this a P2 because it's worth fixing asap and I suspect it's a straight-forward fix.
Priority: -- → P2
Reporter | ||
Comment 2•10 years ago
|
||
I talked to L Guruprasad about this on IRC and I think he agreed to take it, so I'm assigning it to him.
LGuruprasad: If you have questions or issues, let me know.
Assignee: nobody → lgp171188
Mentor: willkg
Reporter | ||
Comment 3•10 years ago
|
||
Reporter | ||
Comment 4•10 years ago
|
||
Landed in master: https://github.com/mozilla/fjord/commit/7fa256a654e5a32dea4eb87857dc73b531656e62
Will push out next deploy.
Reporter | ||
Comment 5•10 years ago
|
||
Pushed just now!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Input → Input Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•