Helm chart downloaded from Package registry has incorrect content type & incorrect file name

Summary

When downloading helm charts from Package Registry using web UI, the filename is download.gtar, content-type in HTTP response is application/x-gtar

Steps to reproduce

  • Upload packaged helm chart https://docs.gitlab.com/ee/user/packages/helm_repository/#publish-a-package
  • Go to Deploy -> Packages -> your pkg name -> download

Example Project

https://gitlab.com/Vojtech.Splichal/bug-report-pgk-registry/

https://gitlab.com/Vojtech.Splichal/bug-report-pgk-registry/-/packages/25459114

What is the current bug behavior?

Download filename: download.gtar

What is the expected correct behavior?

filename should be: ${original_filename}.${original_extension} e.g. my-helm-chart-0.1.0.tgz - this way it was working last week

Relevant logs and/or screenshots

Output of checks

This bug happens on GitLab.com

Possible fixes

Assignee Loading
Time tracking Loading