FS#24571 - [file] zip archives detected as "application/octet-stream"

Attached to Project: Arch Linux
Opened by Gábor (Arpione) - Saturday, 04 June 2011, 15:53 GMT
Last edited by Allan McRae (Allan) - Thursday, 14 July 2011, 01:54 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:

The "file" program reports any zip archive as "application/octet-stream" instead of "application/zip".

Additional info:
* Only affects x86_64
* package version(s): file-5.07-3

Steps to reproduce:
run "file -i" on any zip file
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 14 July 2011, 01:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  file-5.07-4 in [testing]
Comment by Nick Cardullo (kofrad) - Saturday, 04 June 2011, 18:14 GMT
Confirming this on my machine as well.

$ pacman -Q file
file 5.07-3
$ file -i /opt/java/src.zip
/opt/java/src.zip: application/octet-stream; charset=binary
Comment by Jens Adam (byte) - Saturday, 04 June 2011, 23:27 GMT Comment by Allan McRae (Allan) - Monday, 27 June 2011, 04:07 GMT
So, this is not an x86_64 only issue as reported. I see it on i686 too.

> file foo.zip
foo.zip: Zip archive data

> file -i foo.zip
foo.zip: application/octet-stream; charset=binary

Maybe the upstream patch applied to fix zip detection was incomplete...
Comment by Allan McRae (Allan) - Monday, 27 June 2011, 04:32 GMT
Nothing to do with the upstream patches. This is a breakage between file-5.06 and file-5.07.
Comment by Allan McRae (Allan) - Monday, 27 June 2011, 05:01 GMT

Loading...