[jetty-dev] [jira] (JETTY-1409) GzipFilter will double-compress application/x-gzip content

"Jan Bartel (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.jetty.general
Message-ID <412511409.46764.1330917303294.JavaMail.j2ee-jira@codehaus01.managed.contegix.com>
    [ https://jira.codehaus.org/browse/JETTY-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293366#comment-293366 ] 

Jan Bartel commented on JETTY-1409:
-----------------------------------

Nick,

I just committed a fix for the testing of the mime-type: instead of testing if the type is "application/gzip" we now test if the Content-Type contains "gzip", which should catch more of the cases that Joakim listed earlier. Note its not going to catch all of them, but a) most of them aren't IANA registered mimetypes and b) one can always set up the filter with the extra mimetypes that signify already compressed content.

The fix is in jetty-7 and will be rolled into jetty-8 before next release as well.

Hope that helps,
Jan
                
> GzipFilter will double-compress application/x-gzip content
> ----------------------------------------------------------
>
>                 Key: JETTY-1409
>                 URL: https://jira.codehaus.org/browse/JETTY-1409
>             Project: Jetty
>          Issue Type: Bug
>    Affects Versions: 6.1.26
>            Reporter: Nick Pellow
>            Assignee: Jan Bartel
>
> The GzipFilter only excludes zipping mime-types of application/gzip.
> If a file is of type application/x-gzip it gets double-zipped, and needs to be uncompressed twice on the client.
> The following is from the Javadoc on GzipFilter:
> {quote}
>  * The content-type is in the comma separated list of mimeTypes set in the <code>mimeTypes</code> initParameter or
>  * if no mimeTypes are defined the content-type is not "application/gzip"
>  
> {quote}
> This should be extended to:
> {quote}
>  * if no mimeTypes are defined the content-type is not "application/gzip" or *"application/x-gzip"*
> {quote}
> application/x-gzip is the official mime-type for compressed files.
> And this is also what most clients will use when sending files to the server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.