[jetty-dev] [jira] (JETTY-1518) GzipFilter and Jersey with FEATURE_FILTER_FORWARD_ON_404 are not compatible

"Robert Evans (JIRA)" <[email protected]> Tue, 22 May 2012 16:38:21 -0500 (CDT)
Newsgroups gmane.comp.java.jetty.general
Message-ID <1191941580.1030.1337722701059.JavaMail.j2ee-jira@codehaus01.managed.contegix.com>
Robert Evans
created JETTY-1518

GzipFilter and Jersey with FEATURE_FILTER_FORWARD_ON_404 are not compatible

Issue Type:

Bug

Affects Versions:

6.1.26

Assignee:

Unassigned

Created:

22/May/12 4:36 PM

Description:

I am trying to speed up the loading of some large web pages for the Hadoop project. One of the issues that I am running into is that Hadoop also uses Jersey to supply web services, and uses FEATURE_FILTER_FORWARD_ON_404 in Jersey as part of this.

What this feature does is that Jersey will first try to see if any class is registered to handle a request, if not it will set the status code to 404. A Jersey filter further up the stack sees the 404 status, resets the status to 200 and then tries sending the request through to the rest of the configured filters/servlets.

The problem that I am running into is that GZipFilter disables compression for that request the moment that it see the 404 status code, even though it is going to be set back to 200 later on.

Project:

Jetty

Priority:

Major

Reporter:

Robert Evans

This message is automatically generated by JIRA.

If you think it was sent incorrectly, please contact your JIRA administrators .

For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email