Opened 10 years ago
Closed 10 years ago
#26499 closed Bug (worksforme)
AuthenticationMiddleware apparently accesses request.POST
| Reported by: | Christopher Brix | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.auth | Version: | 1.9 |
| Severity: | Normal | Keywords: | middleware request.post |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The middleware AuthenticationMiddleware apparently accesses request.POST, because if I include it I get the exception You cannot access body after reading from request's data stream once I try to read request.body.
Everything works fine if I remove it from the list of middlewares.
I wasn't able to find the source code of AuthenticationMiddleware, but if it indeed does so, this should be considered a bug.
I'm running Python 2 and the latest version of Django.
Change History (2)
comment:1 by , 10 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 10 years ago
| Component: | Uncategorized → contrib.auth |
|---|---|
| Resolution: | → worksforme |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I don't believe it does. Here's the source: https://github.com/django/django/blob/master/django/contrib/auth/middleware.py
Please include complete steps to reproduce the issue when reporting a bug. Thanks.