[traceback] DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 16: ordinal not in range(128). You passed in <Addon: [Bad Unicode data]> (<class 'addons.models.Addon'>)

VERIFIED FIXED in 5.12.10

Status

addons.mozilla.org Graveyard
Public Pages
--
critical
VERIFIED FIXED
8 years ago
3 years ago

People

(Reporter: stephend, Assigned: Andy McKay)

Tracking

unspecified
5.12.10

Details

(URL)

(Reporter)

Description

8 years ago
https://addons.allizom.org/de/firefox/addon/bmrkru-социальные-закладки/abuse/ throws the following traceback, when you submit a report:

Traceback (most recent call last):

  File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/core/handlers/base.py", line 109, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/amo_python/www/preview/zamboni/apps/addons/decorators.py", line 22, in wrapper
    return f(request, addon, *args, **kw)

  File "/data/amo_python/www/preview/zamboni/apps/addons/views.py", line 538, in report_abuse
    send_abuse_report(request, addon, url, form.cleaned_data['text'])

  File "/data/amo_python/www/preview/zamboni/apps/amo/utils.py", line 375, in send_abuse_report
    log.debug('Abuse reported by %s for %s.' % (user_name, obj))

  File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/db/models/base.py", line 371, in __str__
    return force_unicode(self).encode('utf-8')

  File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/utils/encoding.py", line 93, in force_unicode
    raise DjangoUnicodeDecodeError(s, *e.args)

DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 16: ordinal not in range(128). You passed in <Addon: [Bad Unicode data]> (<class 'addons.models.Addon'>)
(Assignee)

Updated

8 years ago
Assignee: nobody → amckay
(Assignee)

Comment 1

8 years ago
https://github.com/jbalogh/zamboni/commit/591a3db0121f0c75526dd2e0b70d2472467cc3ed
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
(Assignee)

Updated

8 years ago
Target Milestone: --- → 5.12.10
(Reporter)

Comment 2

8 years ago
Verified FIXED; thanks!
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.