Project

General

Profile

Actions

action #44564

closed

Correct MIME content types of delivered files served by Mojolicious, compressed archives served as "text/plain"

Added by okurz over 5 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
-
Start date:
2018-11-30
Due date:
% Done:

0%

Estimated time:

Description

Observation

[29/11/2018 22:40:21] <lurchi_> openqa started to serve *.tar.bz2 and *.tar.xz as Content-Type: text/plain
[29/11/2018 22:40:47] <lurchi_> *.iso and *.ogv have useful type (iso9660, video/ogg)

Also:

$ curl -I https://openqa.suse.de/tests/3376089/file/scc_registration-y2logs.tar.bz2
HTTP/1.1 200 OK
Date: Thu, 19 Sep 2019 12:00:43 GMT
Server: Mojolicious (Perl)
ETag: "e539108128283a490d85f953d3552f89"
Last-Modified: Wed, 18 Sep 2019 18:21:19 GMT
Strict-Transport-Security: max-age=31536000; includeSubDomains
Accept-Ranges: bytes
Content-Length: 296036
Content-Type: text/plain;charset=UTF-8

and I made the same observation some time ago. Can we check this?

Steps to reproduce

Problem

Depending on browser configuration "text/plain" might be configured to be opened directly in the browser or be opened with a program to show plain text content. When clicking on compressed archives which are delivered as "text/plain" the browser can still, show binary garbage or crash client programs that try to handle this content

Expected result

Only files which really are plain text should be delivered as such


Related issues 1 (0 open1 closed)

Has duplicate openQA Project - action #57095: Wrong MIME/TYPE for files served by MojoliciousRejectedokurz2019-09-19

Actions
Actions #1

Updated by okurz over 4 years ago

  • Subject changed from recheck content types of delivered files to recheck content types of delivered files, compressed archives served as "text/plain"
  • Description updated (diff)
Actions #2

Updated by okurz over 4 years ago

  • Has duplicate action #57095: Wrong MIME/TYPE for files served by Mojolicious added
Actions #3

Updated by okurz over 4 years ago

  • Subject changed from recheck content types of delivered files, compressed archives served as "text/plain" to Correct MIME content types of delivered files served by Mojolicious, compressed archives served as "text/plain"
  • Description updated (diff)
Actions #4

Updated by kraih over 4 years ago

  • Assignee set to kraih

This should be pretty easy, i'll take a quick look next time i have to wait CI results. :)

Actions #5

Updated by kraih over 4 years ago

  • Status changed from New to Workable
Actions #6

Updated by kraih over 4 years ago

  • Status changed from Workable to Resolved
Actions

Also available in: Atom PDF