Project

General

Profile

Actions

action #176913

closed

openQA Project (public) - coordination #154768: [saga][epic][ux] State-of-art user experience for openQA

openQA Project (public) - coordination #157345: [epic] Improved test reviewer user experience

Ensure logs attached to openQA are opened in new tabs instead of being downloaded size:S

Added by nicksinger about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Observation

https://suse.slack.com/archives/C02CANHLANP/p1739184023726149 - Petr and Oli complained about their browser downloading plain text files instead of displaying them. We should help their browsers to make the right decision for openQA assets.
In Chrome(ium) this seems to happen because of MIME sniffing. https://stackoverflow.com/a/9660578 describes possible solutions. I think the cleanest and easiest would be X-Content-Type-Options: nosniff on our webserver config.

Acceptance criteria

  • AC1: Chromium-based browsers don't prompt for downloading plain text files (and just show them)

Suggestions

  • Add X-Content-Type-Options: nosniff to the appropriate nginx config
    • Consider up-streaming it if useful for others
  • Change openQA to only write valid data into logfiles
    • Is this really what we want? Is it still a "logfile" then if we manipulate it?
Actions #1

Updated by nicksinger about 1 month ago

  • Tags set to infra, reactive work
  • Target version set to Ready
  • Start date deleted (2025-02-11)
Actions #2

Updated by mkittler about 1 month ago

  • Status changed from New to Feedback
  • Assignee set to mkittler
Actions #3

Updated by okurz about 1 month ago

  • Parent task set to #157345
Actions #4

Updated by livdywan about 1 month ago

  • Subject changed from Ensure logs attached to openQA are opened in new tabs instead of being downloaded to Ensure logs attached to openQA are opened in new tabs instead of being downloaded size:S
  • Description updated (diff)
Actions #5

Updated by mkittler about 1 month ago

  • Status changed from Feedback to Resolved

The change has been deployed on and it works. I don't get a download prompt when opening https://openqa.opensuse.org/tests/4843888/file/serial_terminal.txt with Chromium.

Actions

Also available in: Atom PDF