View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000659 | file | General | public | 2025-05-20 08:56 | 2025-05-21 05:58 |
Reporter | Pitzl | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 5.46 | ||||
Summary | 0000659: file -i reports broken MIME type 'application/x-dosexecapplication/zip' on self-extracting ZIP | ||||
Description | Hi! When calling file -i (or using libmagic via Perl bindings), for a faked self-extracting ZIP file 'application/x-dosexecapplication/zip' is returned as MIME type which is broken. | ||||
Steps To Reproduce | Just call file -i on the provided sample file. | ||||
Tags | No tags attached. | ||||
|
Sorry, file upload failed somehow on first try. |
|
Mainly to the devs: I don't know what's supposed to happen if two MIME annotations apply to the same file. In most cases, the first one seems to win. But there's a quirk that if the MIME type is first set in a "name" routine, then set again back in the main pattern, the two MIME types get concatenated together. Seems like a bug to me, but if not, then the only problem is with the pattern definition, which is very complex. |
|
I don't know what to do either. Old verfsions (5.45) just returned the application/zip MIME type. This bug must be something which came in with changes in version 5.46. |