Closed
Bug 951355
Opened 12 years ago
Closed 12 years ago
[traceback] AttributeError: 'Http404' object has no attribute 'has_header' - django.contrib.sessions.middleware in process_response
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect)
addons.mozilla.org Graveyard
Public Pages
Tracking
(Not tracked)
RESOLVED
FIXED
2014-01-28
People
(Reporter: cvan, Assigned: vagnano)
References
()
Details
(Whiteboard: [qa-])
22.6k tracebacks!
http://sentry.mktmon.services.phx1.mozilla.com/mkt/addonsmozillaorg/group/471/
django.contrib.sessions.middleware in process_response
AttributeError: 'Http404' object has no attribute 'has_header'
Stacktrace (most recent call last):
File "django/core/handlers/base.py", line 188, in get_response
response = middleware_method(request, response)
File "amo/middleware.py", line 115, in process_response
.process_response(request, response))
File "django/contrib/sessions/middleware.py", line 26, in process_response
patch_vary_headers(response, ('Cookie',))
File "django/utils/cache.py", line 140, in patch_vary_headers
if response.has_header('Vary'):
Updated•12 years ago
|
Assignee: nobody → vagnano
| Assignee | ||
Comment 1•12 years ago
|
||
That bug seems to have a lot in common with https://bugzilla.mozilla.org/show_bug.cgi?id=873550
It is common when returning an Http404 instead of raising it. I'd suspect https://github.com/mozilla/zamboni/blob/master/apps/files/decorators.py#L26 but not sure how or where the `allowed` decorator is used.
Can't reproduce in local and I have no access to Sentry. I submit a PR about the lines above and we'll see…
| Assignee | ||
Updated•12 years ago
|
Whiteboard: [qa-]
| Assignee | ||
Comment 2•12 years ago
|
||
This COULD be fixed with https://github.com/mozilla/zamboni/commit/22a3a771d069ce5045b862dfafcf59fd6f4f240a.
I won't mark it fixed until someone who has access to the Sentry checks the logs.
Flags: needinfo?(cvan)
Comment 3•12 years ago
|
||
It's still happening in production, but your commit landed 4 days ago so it wouldn't have been live yet. We'll need to verify this after next Tuesday at noon. No reason to keep this bug open though.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Reporter | ||
Updated•12 years ago
|
Flags: needinfo?(cvan)
Target Milestone: --- → 2014-01-28
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•