#14156: CSRF protection in django.contrib.flatpages.views.flatpage causes
unwanted
behavior
--------------------------+-------------------------------------------------
Reporter: patrys | Owner: nobody
Status: new | Milestone:
Component: Contrib apps | Version: 1.2
Keywords: | Stage: Unreviewed
Has_patch: 0 |
--------------------------+-------------------------------------------------
If you only decorate selected views with {{{csrf_protect}}}, any non-
protected POST that ends up resulting in a 404 response returns 403
Forbidden instead.
This is both unwanted and potentially puzzling to developers. Either the
{{{flatpage}}} view should not be decorated (it seems incapable of
altering the application's state) or the above should be documented both
in the CSRF section and in the flatpages section.
--
Ticket URL: <http://code.djangoproject.com/ticket/14156>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.