Closed Bug 1141410 Opened 9 years ago Closed 9 years ago

[traceback] UnicodeDecodeError when putting together url invalid error

Categories

(Input Graveyard :: Code Quality, defect, P2)

defect

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.
Making this a P2 because it's worth fixing asap and I suspect it's a straight-forward fix.
Priority: -- → P2
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
Pushed just now!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.