juju-gui
juju-gui copied to clipboard
clicking links to download resources gets 1.gz and 2.gz vs the displayed filenames
It links directly to the API but because of that no content-disposition is set during download to help provide a real usable filename for the end user. Perhaps these should be proxied? Or maybe we need to decide a path forward and update the API to the charmstore to better be able to help the user.
For example head to: https://jujucharms.com/u/juju-gui/jujushell/
and look at the box on the right for resources. Click each and note what you actually get from these download links.
This is a bug in the storefront as well.
Filed https://github.com/CanonicalLtd/jujucharms.com/issues/536
Also, related: https://github.com/juju/juju-gui/issues/3760
Note that this could possibly be fixed or require a change in the charm store: https://github.com/juju/charmstore/blob/v5/internal/v5/resources.go#L111