View Issue Details

IDProjectCategoryView StatusLast Update
0000317fileGeneralpublic2022-02-15 13:57
Reporterssaschaa Assigned Tochristos  
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
PlatformMacBook Pro M1 arm64OSMacOSOS Version12.2 Darwin 21.3
Product Version5.41 
Summary0000317: OOXML mime-type fails with "application/x-decompression-error-gzip-Unknown-compression-format"
DescriptionWhen trying to get the mime-type of e.g. Excel OOXML file at MacOS decompression fails and MimeType "application/x-decompression-error-gzip-Unknown-compression-format" is returned instead of "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet".

Tried both: compilation and test as ARM64 and X86_64 binary

Steps To Reproducegit clone https://github.com/file/file
cd ./file
autoreconf -i
./configure
make check
./src/file -m ./magic/magic.mgc --mime-type /tmp/Excel_Test.xlsx
Additional InformationTried both: compilation and test as ARM64 and X86_64 binary
Tagsbug, compression

Activities

ssaschaa

2022-02-02 11:18

reporter  

Excel_Test.xlsx (8,460 bytes)

christos

2022-02-15 13:32

manager   ~0003699

Tried to reproduce it, but could not:
[8:32am] 1761>./file -m ../magic/magic.mgc --mime-type Excel_Test.xlsx
Excel_Test.xlsx: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[8:32am] 1762>uname -a
Darwin vpn1-1.astron.com 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:29:10 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T8101 arm64

ssaschaa

2022-02-15 13:57

reporter   ~0003700

Sorry, I forgot to add the CLI switch "-z" for decompression attempts.
On Linux I get (as expected): /tmp/Excel_Test.xlsx: text/xml; charset=us-ascii compressed-encoding=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=binary
But on MacOS I get: /tmp/Excel_Test.xlsx: application/x-decompression-error-gzip-Unknown-compression-format

Issue History

Date Modified Username Field Change
2022-02-02 11:18 ssaschaa New Issue
2022-02-02 11:18 ssaschaa File Added: Excel_Test.xlsx
2022-02-02 11:18 ssaschaa Tag Attached: bug
2022-02-02 11:18 ssaschaa Tag Attached: compression
2022-02-15 13:32 christos Assigned To => christos
2022-02-15 13:32 christos Status new => assigned
2022-02-15 13:32 christos Status assigned => feedback
2022-02-15 13:32 christos Note Added: 0003699
2022-02-15 13:57 ssaschaa Note Added: 0003700
2022-02-15 13:57 ssaschaa Status feedback => assigned