[reports] Traceback in list_reports view.

VERIFIED FIXED

Status

Mozilla Reps
reps.mozilla.org
VERIFIED FIXED
2 years ago
2 years ago

People

(Reporter: tasos, Assigned: tasos)

Tracking

Details

(Assignee)

Description

2 years ago
The view which lists all the reports of a user, under certain urls produces the following traceback.

Traceback (most recent call last):

  File "/data/www/reps.mozilla.org/remo/vendor-local/src/django/django/core/handlers/base.py", line 109, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/reps.mozilla.org/venv/lib/python2.7/site-packages/newrelic-2.50.0.39/newrelic/hooks/framework_django.py", line 499, in wrapper
    return wrapped(*args, **kwargs)

  File "/data/www/reps.mozilla.org/remo/remo/reports/views.py", line 205, in list_ng_reports
    month = month2number(request.GET['month'])

  File "/data/www/reps.mozilla.org/remo/vendor-local/src/django/django/utils/datastructures.py", line 258, in __getitem__
    raise MultiValueDictKeyError("Key %r not found in %r" % (key, self))

MultiValueDictKeyError: "Key 'month' not found in <QueryDict: {u'month[]': [u'February'], u'year': [u'2015']}>"

Comment 1

2 years ago
Commits pushed to master at https://github.com/mozilla/remo

https://github.com/mozilla/remo/commit/25bed29b7f3b43569bec8bed60ee48b0985a5744
[fix bug 1262189] Raise 404 on all exceptions in list_reports.

https://github.com/mozilla/remo/commit/5474747f6fabeab0aa9d03db2c2c08b592a27791
Merge pull request #1124 from akatsoulas/reports-traceback

[fix bug 1262189] Raise 404 on all exceptions in list_reports.

Updated

2 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
Verified in dev:

* Url triggering traceback in prod is now fixed in reps-dev
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.