Closed Bug 1274078 Opened 8 years ago Closed 6 years ago

MIME types are incorrect for text artifacts

Categories

(Taskcluster :: Workers, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1423215

People

(Reporter: sfink, Unassigned)

Details

(Whiteboard: [docker-worker])

Example: from https://tools.taskcluster.net/task-inspector/#QuOdsOyaQgSrqZgbX0bP6A/0 the link https://queue.taskcluster.net/v1/task/QuOdsOyaQgSrqZgbX0bP6A/runs/0/artifacts/public%2Fbuild%2Fhazards.txt.gz has Content-Type: application/octet-stream

Perhaps it would work if it were just .txt, but I have some very large files when uncompressed and I don't think anything compresses them automatically. So perhaps autocompression would work for me here too.

But at any rate, I want it to be the case that clicking on one of these artifacts results in it opening in the browser, rather than asking you to download it.

Thanks!
Whiteboard: [docker-worker]
Content-Types are defined by the worker that uploads the artifact, and generally those are guessed from the filename extension.  We need to be careful not to produce artifacts that could allow XSS and that sort of thing (so, no serving HTML).  Anyway, this is actually probably an issue of content-encoding, which is bug 1423215.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Component: Worker → Workers
You need to log in before you can comment on or make changes to this bug.