juju-gui icon indicating copy to clipboard operation
juju-gui copied to clipboard

clicking links to download resources gets 1.gz and 2.gz vs the displayed filenames

Open mitechie opened this issue 6 years ago • 4 comments

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.

mitechie avatar Jan 17 '18 20:01 mitechie

This is a bug in the storefront as well.

frankban avatar Jul 30 '18 11:07 frankban

Filed https://github.com/CanonicalLtd/jujucharms.com/issues/536

frankban avatar Jul 30 '18 11:07 frankban

Also, related: https://github.com/juju/juju-gui/issues/3760

frankban avatar Jul 30 '18 11:07 frankban

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

frankban avatar Jul 30 '18 12:07 frankban