Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73942

Downloading tgz artifacts in Firefox is broken (regression in 2.463)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • Jenkins 2.480
      Firefox 128.3.0esr
      Linux
    • 2.490, 2.479.3

      When downloading tgz artifacts the downloaded file is zipped an additional time. Firefox does not unzip it when downloading it.

      This is just about the same as https://issues.jenkins.io/browse/JENKINS-73381 it just affects tgz instead of tar.gz files now.

       

      You can reproduce the issue with the attached job which creates a example.tgz and example.tar.gz artifact. Download both using Firefox. The files will have different sizes.

       

      It worked with 2.462.2 and is broken in 2.462.3

      In 2.463 and 2.464 both *.tgz and *.tar.gz were affected.

      Starting with 2.466 only *.tgz is affected.

      I believe it's due to the mimetype 

      tgz=application/x-gtar

      in the winstone fix for tar.gz

      https://github.com/jenkinsci/winstone/pull/397/files

       

          [JENKINS-73942] Downloading tgz artifacts in Firefox is broken (regression in 2.463)

          Basil Crow added a comment -

          I was able to reproduce the issue in Jetty 12.0.14 outside of Jenkins by serving a directory of static files with the Jetty gzip module enabled. This is not a Jenkins bug. Please report the issue to the Jetty developers on their issue tracking system (ITS), and when the issue is fixed upstream we will upgrade to the new release.

          Basil Crow added a comment - I was able to reproduce the issue in Jetty 12.0.14 outside of Jenkins by serving a directory of static files with the Jetty gzip module enabled. This is not a Jenkins bug. Please report the issue to the Jetty developers on their issue tracking system (ITS), and when the issue is fixed upstream we will upgrade to the new release.

          Basil Crow added a comment -

          This has been fixed upstream in https://github.com/jetty/jetty.project/pull/12414 toward the forthcoming release of Jetty 12.0.15. We will upgrade to that version of Jetty when it is available. In the meantime Winstone users can run Jenkins with --compression none to disable the Jetty GZipHandler.

          Basil Crow added a comment - This has been fixed upstream in https://github.com/jetty/jetty.project/pull/12414 toward the forthcoming release of Jetty 12.0.15. We will upgrade to that version of Jetty when it is available. In the meantime Winstone users can run Jenkins with --compression none to disable the Jetty GZipHandler .

          Stefan added a comment -

          Thank you, basil for not only reporting the issue to upstream but also for the workaround!

          The workaround does work for me

          docker run -v ./jenkins_home:/var/jenkins_home --network=host jenkins/jenkins:2.462.3 --compression=none 

          Stefan added a comment - Thank you, basil for not only reporting the issue to upstream but also for the workaround! The workaround does work for me docker run -v ./jenkins_home:/ var /jenkins_home --network=host jenkins/jenkins:2.462.3 --compression=none

            basil Basil Crow
            stefan_vk Stefan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: