Name artifact-X.tar.gz correctly

We might decide that this is not an issue and move on (not a problem!).

Using wget/wget2/curl -O with the existing URLs to download an artifact.tar.gz it saves them into a file named: index.html?archive=tar.gz.

The option (for wget) --content-disposition can be used to use the header Content-Disposition (used by Firefox by default, set by debusine server).

If we want wget/... to save the file correctly we could create a new URL such as: http://localhost:8011/artifact/download/artifact-11.tar.gz

I haven't thought how to specify directories in this format (or, perhaps, this URL should be only for artifacts).

Implementation / maintenance wise seems easy.

Question:

  • Should we add this URL to debusine?
  • Should we remove the previous one using "?archive=tar.gz"? or leave it for subdirectories to keep this simple?
  • Sub-directories: should we try to also add a URL to be able to download sub-directories saved in a good name? Or only artifacts in this format and subdirectories with the previous one?

I know that it's a "silly" thing - it just keeps annoying me seeing index.html?archive=tar.gz when I wget artifacts into a server (I use the browser to find what I need in the server, then wget the artifact).

salsa has the same problem when downloading artifacts. The URL that I usually use is https://salsa.debian.org/freexian-team/debusine/-/jobs/4503046/artifacts/download , so I end up with "download" files unless I use --content-disposition (it is set correctly