View Issue Details

IDProjectCategoryView StatusLast Update
0000448fileGeneralpublic2023-05-18 13:29
ReporterAlbrecht Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSDebianOS VersionBookworm
Product Version5.44 
Fixed in Version5.45 
Summary0000448: invalid MIME type for broken input
DescriptionRunning file v. 5.44 for detecting the MIME type of the broken executable file as of issue 211 (https://bugs.astron.com/file_download.php?file_id=187&type=bug) returns

$ file --mime-type -b ./file-error-sample
application/x-executable, can't read section at -1

Note that the returned value is not a valid MIME type according to RFC 6838, Sect. 4.2. Whilst it would not be complicated to remove the broken extra output (starting at the “,”), this unnecessarily complicates any software parsing the output of file. Thus, the extra informational message should be present only when file shall produce human-readable output. When running file with the option --mime-type, the output should always comply with RFC 6838.
Steps To Reproducesee above
Additional Information-
TagsNo tags attached.

Activities

christos

2023-05-18 13:29

manager   ~0003925

Fixed, thanks!

Issue History

Date Modified Username Field Change
2023-05-13 10:32 Albrecht New Issue
2023-05-18 13:28 christos Assigned To => christos
2023-05-18 13:28 christos Status new => assigned
2023-05-18 13:29 christos Status assigned => resolved
2023-05-18 13:29 christos Resolution open => fixed
2023-05-18 13:29 christos Fixed in Version => 5.45
2023-05-18 13:29 christos Note Added: 0003925