DebuggingLoggerMiddleware crashes with "AttributeError: 'WSGIRequest' object has no attribute 'content'"
Bug #1227543 reported by
Raphaël Badin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Raphaël Badin |
Bug Description
I enabled the DebuggingLogger
ERROR 2013-09-19 09:31:39,519 django.request Internal Server Error: /MAAS/api/
Traceback (most recent call last):
File "/usr/lib/
response = middleware_
File "/usr/lib/
logger.
AttributeError: 'WSGIRequest' object has no attribute 'content'
Related branches
lp:~rvb/maas/fix-loggers
- Gavin Panella (community): Approve
-
Diff: 239 lines (+48/-58)5 files modifiedsrc/maasserver/forms_settings.py (+0/-16)
src/maasserver/middleware.py (+19/-5)
src/maasserver/models/config.py (+0/-3)
src/maasserver/tests/test_forms_settings.py (+0/-14)
src/maasserver/tests/test_middleware.py (+29/-20)
Changed in maas: | |
milestone: | none → 13.10 |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
We should use request.GET and request.POST instead (see https:/ /github. com/django/ django/ blob/master/ django/ core/handlers/ wsgi.py).