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 2011/10/04 17:57:44 UTC
DO NOT REPLY [Bug 51952] IllegalStateException using
CompressionFilter with Tomcat 7.0.21/22
https://issues.apache.org/bugzilla/show_bug.cgi?id=51952
Jess Holle <je...@ptc.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jessh@ptc.com
--- Comment #1 from Jess Holle <je...@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