django.utils.cache.get_conditional_response's etag argument needs to be
*unquoted*, however the etag passed by CommonMiddleware's make_response is
quoted or the GZipMiddleware is modifying it while keeping it quoted.
--
Ticket URL: <https://code.djangoproject.com/ticket/26024>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> ETag support is broken in ConditionalGetMiddleware
>
> django.utils.cache.get_conditional_response's etag argument needs to be
> *unquoted*, however the etag passed by CommonMiddleware's make_response
> is quoted or the GZipMiddleware is modifying it while keeping it quoted.
New description:
ETag support is broken in ConditionalGetMiddleware
django.utils.cache.get_conditional_response's etag argument needs to be
*unquoted*, however the etag passed by CommonMiddleware's make_response is
quoted or the GZipMiddleware is modifying it while keeping it quoted.
Pull request with Regression Test:
https://github.com/django/django/pull/5919
--
--
Ticket URL: <https://code.djangoproject.com/ticket/26024#comment:1>
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/26024#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"186b6c61bfe85afa4d6bf213d04a28dd2853fed2" 186b6c61]:
{{{
#!CommitTicketReference repository=""
revision="186b6c61bfe85afa4d6bf213d04a28dd2853fed2"
Fixed #26024 -- Fixed regression in ConditionalGetMiddleware ETag support.
Thanks Denis Cornehl for help with the patch.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26024#comment:3>
Comment (by Tim Graham <timograham@…>):
In [changeset:"ee2835e69c47d02e8bce5a496bf8bd9f93b04fb4" ee2835e6]:
{{{
#!CommitTicketReference repository=""
revision="ee2835e69c47d02e8bce5a496bf8bd9f93b04fb4"
[1.9.x] Fixed #26024 -- Fixed regression in ConditionalGetMiddleware ETag
support.
Backport of 186b6c61bfe85afa4d6bf213d04a28dd2853fed2 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26024#comment:4>