manifest with UTF8 BOM results in ValueError("No JSON object could be decoded")

VERIFIED FIXED in 6.4.4

Status

addons.mozilla.org Graveyard
Developer Pages
P1
normal
VERIFIED FIXED
6 years ago
2 years ago

People

(Reporter: kumar, Assigned: kumar)

Tracking

unspecified
6.4.4
x86
Mac OS X

Details

http://arecibo1.dmz.phx1.mozilla.com/view/1531716/

  File "/data/www/addons.mozilla.org/zamboni/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/addons.mozilla.org/zamboni/apps/amo/decorators.py", line 112, in wrapper
    return f(*args, **kw)

  File "/data/www/addons.mozilla.org/zamboni/apps/amo/decorators.py", line 104, in wrapper
    return f(*args, **kw)

  File "/data/www/addons.mozilla.org/zamboni/apps/amo/decorators.py", line 29, in wrapper
    return func(request, *args, **kw)

  File "/data/www/addons.mozilla.org/zamboni/mkt/submit/decorators.py", line 19, in wrapper
    return f(request, *args, **kw)

  File "/data/www/addons.mozilla.org/zamboni/mkt/submit/views.py", line 73, in manifest
    if addon.has_icon_in_manifest():

  File "/data/www/addons.mozilla.org/zamboni/apps/webapps/models.py", line 135, in has_icon_in_manifest
    data = self.get_manifest_json()

  File "/data/www/addons.mozilla.org/zamboni/apps/webapps/models.py", line 143, in get_manifest_json
    return json.load(mf)

  File "/usr/lib64/python2.6/json/__init__.py", line 267, in load
    parse_constant=parse_constant, **kw)

  File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)

  File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())

  File "/usr/lib64/python2.6/json/decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")
Assignee: nobody → kumar.mcmillan
Priority: -- → P1
Target Milestone: --- → 6.4.4
Fixed https://github.com/mozilla/zamboni/commit/ec2deed
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Summary: addon.has_icon_in_manifest(): ValueError("No JSON object could be decoded") → manifest with UTF8 BOM results in ValueError("No JSON object could be decoded")
Uploading this manifest would reproduce the traceback: http://people.mozilla.com/~kmcmillan/utf8bom.webapp

Comment 3

6 years ago
Uploading the manifest from comment 2 doesn't generate any errors anymore. Verified fixed at https://marketplace-dev.allizom.org/en-US/developers/upload/dadba09bbb8b43c68e32b1993fae667f

I'm marking this as fixed.
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.