Downloading an Artifact from the Mender server obfuscates file names

Description

When you use the "Download" button in the Mender UI to download an Artifact, it will download files with names such as:

I see a couple of problems with this:

  • It is very hard to find the file after it has been downloaded, e.g I downloaded four Artifacts and now I do not know which is which.

  • The files do not have a ".mender" extensions.

What I was trying to do is to download an Artifact from one server to upload to another, but trying to upload the files I have downloaded trigger the "Create Artifact" wizard. So now I must rename the Artifacts manually to at least have a ".mender" extension to not trigger the wizard.

And again as the names are obfuscated they are very hard to work with.

Affects versions

None

Environment

None

Checklist

Activity

Show:

Fabio TranchitellaJune 16, 2020 at 5:17 AM

All we need is setting the `ResponseContentDisposition` field of the `GetObjectInput` object here:
https://github.com/mendersoftware/deployments/blob/master/s3/filestorage.go#L439

The value is: `attachment; filename=foo.bar`, where `foo.bar` should be the release name + ".mender"

I think 2 story points are enough.

eystein.maloy.stenbergJune 15, 2020 at 8:09 PM

if you get a chance before sprint planning perhaps you could comment on this one? If it's clear what to do we can consider for next sprint.

eystein.maloy.stenbergJune 1, 2020 at 9:59 PM

Ping

eystein.maloy.stenbergMay 19, 2020 at 2:06 AM

you are the expert on this, perhaps you could comment (at least give the file download a .mender suffix – see above).

Fixed

Details

Assignee

Reporter

Labels

Story Points

Priority

Days in progress

0

Sprint

Backlog

yes

Zendesk Support

Checklist

Created April 14, 2020 at 1:09 PM
Updated June 29, 2020 at 6:32 PM
Resolved June 16, 2020 at 11:18 AM