#26499: AuthenticationMiddleware apparently accesses request.POST
-------------------------------------+-------------------------------------
Reporter: ChristopherBrix | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.9
Severity: Normal | Resolution:
Keywords: middleware | Triage Stage:
request.post | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by ChristopherBrix):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> 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`.
>
> I wasn't able to find the source code of `AuthenticationMiddleware`, but
> if it indeed does so, this [https://code.djangoproject.com/ticket/16384
> should be considered a bug].
>
> I'm running Python 2 and the latest version of Django.
New description:
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 [https://code.djangoproject.com/ticket/16384
should be considered a bug].
I'm running Python 2 and the latest version of Django.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/26499#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/073.691dbb672433e66ac24fec9e48e56c8d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.