-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
.tgz
files are double-gzipped
#12397
Comments
@joakime is this as straightforward as it sounds? |
Not sure. Compressing again is bad, sure, that part seems OK. At first I was thinking this should be a fix in MimeTypes that the initialization of GzipHandler uses. @basil in the meantime, as a proper workaround for Jenkins, start configuring your |
The headers from the two downloads ... First, the REQUEST
RESPONSE
Next, the REQUEST
RESPONSE
|
+ Exclude more compressed mime-types + Exclude more compressed path extensions + Add missing compressed file types to mime.properties
Jetty version(s)
12.0.14
Jetty Environment
EE 9
EE 10
Java version/vendor
OS type/version
Ubuntu 22.04.5 LTS x86_64
Context
See JENKINS-73942.
Steps to reproduce
Observe the files are identical:
Start the server:
$ $JETTY_HOME/bin/jetty.sh start
Visit http://127.0.0.1:8080/static/ in Firefox and download both files.
Expected results
The files should be identical.
Actual results
The files are not identical, as the
.tgz
file is (erroneously!) double-gzipped. The.tar.gz
file is correct.Note
The problem only appears when the
gzip
module is enabled.The problem disappeared after I unzipped
$JETTY_HOME/lib/jetty-http-12.0.14.jar
, updatedorg/eclipse/jetty/http/mime.properties
to replacetgz=application/x-gtar
withtgz=application/gzip
, re-packed the JAR, and relaunched Jetty.The text was updated successfully, but these errors were encountered: