Skip to content

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

@jenkins-infra-bot

Description

@jenkins-infra-bot

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

 


Originally reported by stefan_vk, imported from: Downloading tgz artifacts in Firefox is broken (regression in 2.463)
  • assignee: basil
  • status: Closed
  • priority: Minor
  • component(s): core
  • label(s): 2.479.3-fixed, regression
  • resolution: Fixed
  • resolved: 2024-12-17T19:49:21+00:00
  • votes: 0
  • watchers: 4
  • imported: 2025-11-24
Raw content of original issue

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

 

environment
Jenkins 2.480<br/>
Firefox 128.3.0esr<br/>
Linux
1 attachment

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions