Mantis - Resin
Viewing Issue Advanced Details
5974 major always 01-23-16 02:22 05-09-16 13:49
stbu  
ferg  
normal  
closed 4.0.47  
fixed  
none    
none 4.0.49  
0005974: GzipFilter causes ERR_CONTENT_DECODING_FAILED in case of exception in <jsp:include/>
As a Resin-Professional user we're using the GzipFilter and recently received browser issues in Google Chrome and Firefox (most recent stable versions).

Chrome: ERR_CONTENT_DECODING_FAILED
Firefox: Content-Encoding-Error

These Content-Encoding-Error happen when the following conditions are fulfilled:

- com.caucho.filters.GzipFilter enabled, e.g. in resin-web.xml
- <jsp:include page="file-throwing-an-exception.jsp" flush="true"/>
- included .jsp file is throwing an exception

I am going to attach a .war file with 2 JSPs and a resin-web.xml.
Simpy deploy the .war file and open it in a browser. Click on the link to generate a NullPointerExceptionin the included file and the Browser is reporting the Content-Encoding-Error problem.

If you just comment the resin-web.xml line for the filter-mapping for the gzip filter, restart the web-app and repeat above steps the Browser will be able to display the content properly and you'll see the expected 500 Servlet Exception and java.lang.NullPointerException.
 bug-5974-poc.war [^] (1,467 bytes) 01-23-16 02:23

Notes
(0006700)
ferg   
05-09-16 13:49   
server/183x