[traceback] django.core.urlresolvers:NoReverseMatch: Reverse for 'security.product-advisories' with arguments '()' and keyword arguments '{'slug': u'firefox3 0'}' not found. 1 pattern(s) tried: ['security/known-vulnerabilities/(?P<slug>[a-z-]+)/$']

VERIFIED FIXED

Status

--
major
VERIFIED FIXED
3 years ago
3 years ago

People

(Reporter: stephend, Assigned: pmac)

Tracking

Production

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
https://www.mozilla.org/en-US/security/known-vulnerabilities/firefox3%20%200.html throws a 500:

 django.core.urlresolvers:NoReverseMatch: Reverse for 'security.product-advisories' with arguments '()' and keyword arguments '{'slug': u'firefox3 0'}' not found. 1 pattern(s) tried: ['security/known-vulnerabilities/(?P<slug>[a-z-]+)/$']
Stack trace
Traceback (most recent call last):
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/newrelic-2.50.0.39/newrelic/api/web_transaction.py", line 1329, in _nr_wsgi_application_wrapper_
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/whitenoise/base.py", line 62, in __call__
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/newrelic-2.50.0.39/newrelic/api/web_transaction.py", line 1215, in _nr_wsgi_application_wrapper_
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/newrelic-2.50.0.39/newrelic/hooks/framework_django.py", line 499, in wrapper
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/django/utils/decorators.py", line 29, in _wrapper
File "/data/www/www.mozilla.org-django/bedrock/bedrock/mozorg/decorators.py", line 21, in inner
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/django/utils/decorators.py", line 25, in bound_func
File "/data/www/www.mozilla.org-django/bedrock/bedrock/security/views.py", line 191, in dispatch
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/newrelic-2.50.0.39/newrelic/hooks/framework_django.py", line 872, in wrapper
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 189, in get
File "/data/www/www.mozilla.org-django/bedrock/bedrock/security/views.py", line 223, in get_redirect_url
File "/data/www/www.mozilla.org-django/bedrock/bedrock/base/urlresolvers.py", line 30, in reverse
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/newrelic-2.50.0.39/newrelic/hooks/framework_django.py", line 593, in wrapper
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/newrelic-2.50.0.39/newrelic/hooks/framework_django.py", line 592, in execute
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/django/core/urlresolvers.py", line 551, in reverse
File "/data/www/www.mozilla.org-django/venv/lib/python2.7/site-packages/django/core/urlresolvers.py", line 468, in _reverse_with_prefix

New Relic: https://rpm.newrelic.com/accounts/263620/applications/2639284/traced_errors/2845b9-ff13771b-08f6-11e5-a48a-f8bc124250a8
Assignee: nobody → pmac
Status: NEW → ASSIGNED

Comment 2

3 years ago
Commits pushed to master at https://github.com/mozilla/bedrock

https://github.com/mozilla/bedrock/commit/9f32f53625f06b341a29d0d73c39691c6990fc99
Fix bug 1171181: Respond correctly when no redirect found.

Remove spaces from old file name in case its valid. Return 410
(gone) if no redirect url can be found.

https://github.com/mozilla/bedrock/commit/3a60e1312bb3b2dfe06c683683fcd566bfb81a3c
Merge pull request #3035 from pmclanahan/fix-security-advisory-redirect-1171181

Fix bug 1171181: Respond correctly when no redirect found.

Updated

3 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

3 years ago
Verified FIXED; now redirects correctly to https://www.mozilla.org/en-US/security/known-vulnerabilities/firefox-3.0/ and displays / returns a 200 OK just fine.  Thanks!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.