tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51952] IllegalStateException using CompressionFilter with Tomcat 7.0.21/22
Date Tue, 04 Oct 2011 15:57:44 GMT

Jess Holle <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #1 from Jess Holle <> 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

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message