View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000659 | file | General | public | 2025-05-20 08:56 | 2025-05-28 14:31 |
Reporter | Pitzl | Assigned To | christos | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.46 | ||||
Fixed in Version | HEAD | ||||
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. |
|
FYI RFC 2045 says a message body can have one Content-Type per entity, i.e. except multipart or `image/svg+xml`. |
|
Fixed to print only the first annotation, unless -k is specified. |
Date Modified | Username | Field | Change |
---|---|---|---|
2025-05-20 08:56 | Pitzl | New Issue | |
2025-05-20 08:58 | Pitzl | Note Added: 0004226 | |
2025-05-20 08:58 | Pitzl | File Added: fake_selfextracting_zip | |
2025-05-20 17:35 | jsummers | Note Added: 0004227 | |
2025-05-21 05:58 | Pitzl | Note Added: 0004228 | |
2025-05-24 09:04 | polluks | Note Added: 0004229 | |
2025-05-28 14:30 | christos | Assigned To | => christos |
2025-05-28 14:30 | christos | Status | new => assigned |
2025-05-28 14:31 | christos | Status | assigned => resolved |
2025-05-28 14:31 | christos | Resolution | open => fixed |
2025-05-28 14:31 | christos | Fixed in Version | => HEAD |
2025-05-28 14:31 | christos | Note Added: 0004232 |