Jetty
  1. Jetty
  2. JETTY-1409

GzipFilter will double-compress application/x-gzip content

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.26
    • Fix Version/s: 7.6.2, 8.1.2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      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:

      • 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"

      This should be extended to:

      • if no mimeTypes are defined the content-type is not "application/gzip" or "application/x-gzip"

      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.

        Activity

          People

          • Assignee:
            Jan Bartel
            Reporter:
            Nick Pellow
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: