freebsd / poudriere

Port/Package build and test system
https://github.com/freebsd/poudriere/wiki
BSD 2-Clause "Simplified" License
379 stars 161 forks source link

poudriere.pkg_deps% not MIMEd as plain text, naming is challenging for OS parsing #1135

Open gessel opened 3 months ago

gessel commented 3 months ago

Prerequisites

Describe the bug

Choosing from the poudriere web interface (nginx), Logs->Dependency Graph, initiates a download of http://server/data/FBSD_14-0-R-default/2024-03-16_01h52m39s/.poudriere.pkg_deps%25

Unlike the log files, which after the suggested minor modification to /usr/local/etc/nginx/mime.types display nicely in the browser, the file is downloaded instead, despite also being plain text and despite it also being convenient to be able to view it in the same browser window.

Further, the file name confuses at least my Linux Mint desktop and makes it ever so slightly less convenient still to see the precious contents therein.

How to reproduce

Steps to reproduce the behavior:

  1. Go to 'Logs->Dependency Graph'
  2. Click on 'Dependency Graph'
  3. See error oopisie

Expected behavior

Show me the log file! In a browser window. optimally a new one, just like logs do.

Screenshots

![image](https://github.com/freebsd/poudriere/assets/3670635/80250f8b-dd26-4eff-ac69-398a6bae8e60) ## Environment - Host OS [e.g. 12.2 amd64]: 14.0R amd64 - Jail OS [e.g. 12.0 powerpc]: 14.0R amd64 - Browser: [e.g. chrome, safari]: brave - Poudriere Version [e.g. 3.3.1 or git hash or port version]: 3.4.1_1 - Ports branch and revision [e.g. 2020Q3 r550754]: main ## Additional context Changing the name of the log to something like "poudriere_pkg_deps.txt" would make it easy.