[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 <102060406.45785.1330667162920.JavaMail.j2ee-jira@codehaus01.managed.contegix.com>
    [ https://jira.codehaus.org/browse/JETTY-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293171#comment-293171 ] 

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

Nick,

Actually the GzipFilter is checking whether on not the Content-Type has been set on the response and whether the Accept-Encoding includes "gzip" in order to determine if the content is gzippable.

So I can't see how the file is being gzipped twice, as once the zipping starts it sets the Content-Type header, which should prevent any further entry of the filter.

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.