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 2 months ago. Updated 2 months 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

Also available in: Atom PDF