Anonymous | Login | Signup for a new account | 12-17-2024 10:40 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0001087 | [Resin] | minor | always | 05-05-06 08:25 | 06-28-06 19:48 | ||||
Reporter | ferg | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 3.0.20 | Product Version | 3.0.18 | ||||
Product Build | |||||||||
Summary | 0001087: gzip issues with changing status code | ||||||||
Description |
(rep by Frank Nestel) The "offending" code from our perspective is within GzipFilter$GzipResponse in the following two methods: /** * If the status changes, need to disable the response. */ public void setStatus(int status, String message) { super.setStatus(status, message); if (_gzipStream != null) { _gzipStream.setEnable(false); _response.setHeader("Content-Encoding", "plain"); } _allowGzip = false; } /** * If the status changes, need to disable the response. */ public void setStatus(int status) { super.setStatus(status); if (_gzipStream != null) { _gzipStream.setEnable(false); _response.setHeader("Content-Encoding", "plain"); } _allowGzip = false; } We have an application which generates both, lots of 410 status codes and 301's. With the original Resin Gzip code the 410 pages get detroyed since unfortunately the decision that a page is 410 and not 200 can only be done after 80% of the JSP code is allready processed and there is allready much html burried somewhere in the _gzipStream, not yet send to the client. On the other hand if we simply remove above two methods (which then reduces them to the corresponding super.setStatus(...)-APIs) the 410 work fine. But then it turns out that the 301 responses are not properly handled by M$ Internet Explorer any more. For now we're stuck with not using GZipFilter which is not really what we wanted. |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |