Specifying addontype in list API URLs throws a 500 error

VERIFIED FIXED in 5.8

Status

--
major
VERIFIED FIXED
9 years ago
3 years ago

People

(Reporter: krupa.mozbugs, Assigned: davedash)

Tracking

unspecified
x86
All

Details

(URL)

(Reporter)

Description

9 years ago
API version:1.2

steps to reproduce:
1.Search for a list of all new extensions in API(https://preview.addons.mozilla.org/en-US/firefox/api/1.2/list/new/extension)


observed behavior:
500-Internal Server error

can reproduce on 1.5 as well
Traceback (most recent call last):

 File "/data/virtualenvs_preview/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py", line 101, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/data/amo_python/www/preview/zamboni/apps/api/urls.py", line 9, in <lambda>
   class_view = lambda x: lambda *args, **kwargs: x()(*args, **kwargs)

 File "/data/amo_python/www/preview/zamboni/apps/api/views.py", line 76, in __call__
   return self.process_request(*args, **kwargs)

 File "/data/amo_python/www/preview/zamboni/apps/api/views.py", line 188, in process_request
   addon_type = int(addon_type)

ValueError: invalid literal for int() with base 10: 'plugin'
See Also: → bug 551777
http://github.com/jbalogh/zamboni/commit/6b4183aae01ac78b2f11d33a41b415a31574d536
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

9 years ago
verified fixed at-

https://preview.addons.mozilla.org/z/en-US/firefox/api/1.5/list/new/extension
https://preview.addons.mozilla.org/z/en-US/firefox/api/1.2/list/new/extension
https://preview.addons.mozilla.org/z/en-US/firefox/api/1.2/list/new/plugin

500 errors are not shown anymore.However to list addontype specific add-ons, we need to specify addontype number.
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.