You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/04/25 18:05:47 UTC
DO NOT REPLY [Bug 39402] New: - enabling gzip negotiation overwrites existing "vary:" headers
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39402>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39402
Summary: enabling gzip negotiation overwrites existing "vary:"
headers
Product: Tomcat 5
Version: 5.5.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Connector:HTTP
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: mpcooke3@hotmail.com
If you have a site that uses "vary:" headers such as "vary: cookie" to
distinguish between the cacheability of pages for cookied and non-cookied users
this header will get overwritten if you enable gzip negotiation in tomcats
server.xml config.
If gzip negotiation is enabled it should modify the vary header *not* overwrite it.
This is quite bad as enabling gzip in the config can currently cause incorrect
files to get cached in browsers/proxies. By the time a developer realises that
the gzip functionality is broken in this way, various caches will hold the wrong
content possibly for long periods of time even once gzip is turned off again.
I suggest putting a warning in the server.xml against using gzip negotiation if
you are already using vary headers until this bug gets fixed.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 39402] - enabling gzip negotiation overwrites existing "vary:" headers
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39402>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39402
yoavs@computer.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From yoavs@computer.org 2006-12-25 04:57 -------
Good catch: thanks for reporting this.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 39402] - enabling gzip negotiation overwrites existing "vary:" headers
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39402>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39402
------- Additional Comments From mpcooke3@hotmail.com 2006-06-07 17:19 -------
Created an attachment (id=18424)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18424&action=view)
A patch that fixes the overwriting vary header bug
This change checks for existing Vary headers and will add to any existing
values in the Vary header. If there is no existing Vary header then it will add
a new one as before.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 39402] - enabling gzip negotiation overwrites existing "vary:" headers
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39402>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39402
------- Additional Comments From mpcooke3@hotmail.com 2006-12-25 06:41 -------
(In reply to comment #2)
> Good catch: thanks for reporting this.
Ohh it was a nice xmas present that someone picked this up :)
Please note that the patch only patched
Http11AprProcessor.java
The other HttpProcessor.java needs fixing too. I'm not sure what the difference
is between these files but they both have the same Vary bug.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 39402] - enabling gzip negotiation overwrites existing "vary:" headers
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39402>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39402
mpcooke3@hotmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Connector:HTTP |Connector:Coyote
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org