[Step 7][traceback] AttributeError: 'NoneType' object has no attribute 'supported_platforms'

VERIFIED FIXED in 5.12.5

Status

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

People

(Reporter: krupa, Assigned: jbalogh)

Tracking

Details

(Whiteboard: [z], URL)

(Reporter)

Description

7 years ago
steps to reproduce:
1. Load https://addons.allizom.org/z/en-US/developers/addons
2. Choose an add-on which is incomplete with no add-on versions
3. Click on "resume" link

traceback details:

 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/amo/decorators.py", line 77, in wrapper
   return f(*args, **kw)

 File "/data/amo_python/www/preview/zamboni/apps/amo/decorators.py", line 69, in wrapper
   return f(*args, **kw)

 File "/usr/lib/python2.6/contextlib.py", line 34, in __exit__
   self.gen.throw(type, value, traceback)

 File "/data/amo_python/www/preview/zamboni/apps/amo/models.py", line 37, in skip_cache
   yield

 File "/data/amo_python/www/preview/zamboni/apps/amo/decorators.py", line 69, in wrapper
   return f(*args, **kw)

 File "/data/amo_python/www/preview/zamboni/apps/amo/decorators.py", line 24, in wrapper
   return func(request, *args, **kw)

 File "/data/amo_python/www/preview/zamboni/apps/devhub/views.py", line 55, in wrapper
   return fun()

 File "/data/amo_python/www/preview/zamboni/apps/devhub/views.py", line 49, in <lambda>
   fun = lambda: f(request, addon_id=addon_id, addon=addon, *args, **kw)

 File "/data/amo_python/www/preview/zamboni/apps/devhub/views.py", line 669, in wrapper
   return f(request, *args, **kw)

 File "/data/amo_python/www/preview/zamboni/apps/devhub/views.py", line 784, in submit_done
   sp = addon.current_version.supported_platforms

AttributeError: 'NoneType' object has no attribute 'supported_platforms'


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'AMOappName': 'firefox',
 'AMOv3': 'cqsv2dhad5ti12u3u2e75uodq5',
 'amo_home_promo_seen': '5',
 'csrftoken': 'a0105c32af7316d5247721f199b3e3e5',
 'sessionid': 'bca87a0e7af3089b1e2790de6e85ef1e',
 'yes-I-read-the-dev-agreement': ''},
META:{'CSRF_COOKIE': 'a0105c32af7316d5247721f199b3e3e5',
 'DOCUMENT_ROOT': '/data/www/addons.mozilla.org-preview/site/app/webroot',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTPS': 'on',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en,kn;q=0.7,en-us;q=0.3',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'csrftoken=a0105c32af7316d5247721f199b3e3e5; amo_home_promo_seen=5; AMOappName=firefox; yes-I-read-the-dev-agreement=; AMOv3=cqsv2dhad5ti12u3u2e75uodq5; sessionid=bca87a0e7af3089b1e2790de6e85ef1e',
 'HTTP_HOST': 'addons.allizom.org',
 'HTTP_KEEP_ALIVE': '115',
 'HTTP_REFERER': 'https://addons.allizom.org/z/en-US/developers/addons',
 'HTTP_SSLCLIENTCERTSTATUS': 'NoClientCert',
 'HTTP_SSLCLIENTCIPHER': 'SSL_RSA_WITH_RC4_128_SHA, version=TLSv1, bits=128',
 'HTTP_SSLSESSIONID': '87CF0E723856A8A06854BF9CDB6F56E96A31BABDC7D499F2212E292E95529879',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12',
 'HTTP_X_CLUSTER_CLIENT_IP': '63.245.220.240',
 'HTTP_X_FORWARDED_FOR': '63.245.220.240',
 'PATH_INFO': u'/en-US/developers/addon/247266/submit/7',
 'PATH_TRANSLATED': 'redirect:/index.php/developers/addon/247266/submit/7',
(Assignee)

Updated

7 years ago
Assignee: nobody → jbalogh
Priority: -- → P1
(Assignee)

Comment 1

7 years ago
http://github.com/jbalogh/zamboni/commit/5c5c9ec
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

7 years ago
For add-ons with no versions, clicking on "resume" loads the Versions pages. There is no traceback. Verified @ https://addons.allizom.org/z/en-US/developers/addon/247266/versions/
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.