tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51952] IllegalStateException using CompressionFilter with Tomcat 7.0.21/22
Date Tue, 04 Oct 2011 15:57:44 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51952

Jess Holle <jessh@ptc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jessh@ptc.com

--- Comment #1 from Jess Holle <jessh@ptc.com> 2011-10-04 15:57:44 UTC ---
I find this a bit funny as I had exactly the same issue with my own
CompressionFilter.  The issue is that 7.0.21 produces a response body *inside*
sendRedirect().  This entails it obtaining a response writer therein, which
your filter can't know has occurred as it's doing this at a level of the filter
chain your filter can't see.

This issue seemed easy enough to address -- for the test cases I initially saw.
 Unfortunately for your test case things are not so simple.  I'm not at all
sure how one can do a CompressionFilter with this Tomcat change in place -- as
filters can no longer tell when it is safe to call getOutputStream().

I'm half inclined to remove the Tomcat "fix" that caused this from my Tomcat
binary.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message