[Manage Versions page][traceback]IndexError: list index out of range while adding compatibility info

RESOLVED WORKSFORME

Status

addons.mozilla.org Graveyard
Developer Pages
RESOLVED WORKSFORME
7 years ago
2 years ago

People

(Reporter: krupa, Assigned: andym)

Tracking

unspecified
4.x (triaged)

Details

(URL)

(Reporter)

Description

7 years ago
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12

steps to reproduce:
1. Load https://addons.allizom.org/z/en-US/developers/addon/255389/versions/121786
2. Add apps under compatibility info with valid ranges
3. Click "Save"


traceback details:

File "/data/amo_python/www/preview/zamboni/apps/devhub/forms.py", line 318, in __init__
   super(BaseCompatFormSet, self).__init__(*args, **kw)

 File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/forms/models.py", line 439, in __init__
   super(BaseModelFormSet, self).__init__(**defaults)

 File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/forms/formsets.py", line 47, in __init__
   self._construct_forms()

 File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/forms/formsets.py", line 97, in _construct_forms
   self.forms.append(self._construct_form(i))

 File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/forms/models.py", line 463, in _construct_form
   kwargs['instance'] = self.get_queryset()[i]

 File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/db/models/query.py", line 173, in __getitem__
   return self._result_cache[k]

IndexError: list index out of range


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u'files-0-id': [u'103634'], u'form-0-application': [u'1'], u'form-4-max': [u'294'], u'form-4-id': [u''], u'form-3-application': [u'59'], u'form-3-min': [u'91'], u'form-0-id': [u'95319'], u'files-0-platform': [u'2'], u'form-0-min': [u'218'], u'files-TOTAL_FORMS': [u'1'], u'releasenotes': [u'wbg'], u'form-4-min': [u'109'], u'form-3-max': [u'276'], u'form-2-id': [u''], u'form-1-id': [u'95320'], u'csrfmiddlewaretoken': [u'2132ebb93c68547790cc7b2628888680'], u'files-INITIAL_FORMS': [u'1'], u'form-1-max': [u'89'], u'files-MAX_NUM_FORMS': [u''], u'form-2-min': [u'355'], u'form-TOTAL_FORMS': [u'5'], u'form-1-min': [u'119'], u'form-INITIAL_FORMS': [u'2'], u'form-2-max': [u'356'], u'form-0-max': [u'350'], u'form-3-id': [u''], u'files-0-status': [u'1'], u'form-2-application': [u'60'], u'form-1-application': [u'18'], u'form-MAX_NUM_FORMS': [u''], u'approvalnotes': [u'grtg'], u'form-4-application': [u'52']}>,
COOKIES:{'AMOappName': 'firefox',
(Assignee)

Comment 1

7 years ago
Not able to reproduce yet, were you using the back button in these steps? I've only seen this error in conjuction with the back button.
(Reporter)

Comment 2

7 years ago
nope, I was not using the back button. I will try to reproduce this bug again and come up with more detailed STR.
Krupa, I think the XSS Me add-on can trigger this exception.
closing this until we have STR
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
Target Milestone: 5.12.5 → 4.x (triaged)
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.