View Issue Details

IDProjectCategoryView StatusLast Update
0000517fileGeneralpublic2024-04-22 20:04
Reportera1rind Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.44 
Summary0000517: xlsx file content type is detected as application/octet-stream
DescriptionHi!

An OOXML format xlsx file (attached) is being determined as an application/octet-stream.

The `zipinfo` lists the following directories/files:

```
Zip file size: 9794 bytes, number of entries: 14
-rw---- 4.5 fat 1533 b- defS 24-Apr-17 13:31 [Content_Types].xml
-rw---- 4.5 fat 735 b- defS 80-Jan-01 00:00 _rels/.rels
-rw---- 4.5 fat 785 b- defS 80-Jan-01 00:00 docProps/app.xml
-rw---- 4.5 fat 506 b- defS 24-Apr-17 13:31 docProps/core.xml
-rw---- 4.5 fat 245 b- defF 23-Nov-06 15:29 docProps/custom.xml
-rw---- 4.5 fat 703 b- defS 24-Apr-17 13:31 xl/_rels/workbook.xml.rels
-rw---- 4.5 fat 7856 b- defS 80-Jan-01 00:00 xl/printerSettings/printerSettings1.bin
-rw---- 4.5 fat 3680 b- defS 24-Apr-17 13:31 xl/styles.xml
-rw---- 4.5 fat 8392 b- defS 80-Jan-01 00:00 xl/theme/theme1.xml
-rw---- 4.5 fat 1826 b- defS 24-Apr-17 13:31 xl/workbook.xml
-rw---- 4.5 fat 458 b- defS 24-Apr-17 13:31 xl/worksheets/_rels/sheet1.xml.rels
-rw---- 4.5 fat 3765 b- defF 24-Apr-17 13:31 xl/worksheets/sheet1.xml
-rw---- 4.5 fat 1408 b- defN 24-Apr-17 13:31 xl/tables/table1.xml
-rw---- 4.5 fat 1415 b- defN 24-Apr-17 13:31 xl/sharedStrings.xml
14 files, 33307 bytes uncompressed, 8066 bytes compressed: 75.8%
```

If I regroup the files, the issue is fixed:
```
Zip file size: 9487 bytes, number of entries: 14
?rw------- 2.0 unx 1533 b- defN 24-Apr-23 00:58 [Content_Types].xml
?rw------- 2.0 unx 735 b- defN 24-Apr-23 00:58 _rels/.rels
?rw------- 2.0 unx 703 b- defN 24-Apr-23 00:58 xl/_rels/workbook.xml.rels
?rw------- 2.0 unx 7856 b- defN 24-Apr-23 00:58 xl/printerSettings/printerSettings1.bin
?rw------- 2.0 unx 3680 b- defN 24-Apr-23 00:58 xl/styles.xml
?rw------- 2.0 unx 8392 b- defN 24-Apr-23 00:58 xl/theme/theme1.xml
?rw------- 2.0 unx 1826 b- defN 24-Apr-23 00:58 xl/workbook.xml
?rw------- 2.0 unx 458 b- defN 24-Apr-23 00:58 xl/worksheets/_rels/sheet1.xml.rels
?rw------- 2.0 unx 3765 b- defN 24-Apr-23 00:58 xl/worksheets/sheet1.xml
?rw------- 2.0 unx 1408 b- defN 24-Apr-23 00:58 xl/tables/table1.xml
?rw------- 2.0 unx 1415 b- defN 24-Apr-23 00:58 xl/sharedStrings.xml
?rw------- 2.0 unx 785 b- defN 24-Apr-23 00:58 docProps/app.xml
?rw------- 2.0 unx 506 b- defN 24-Apr-23 00:58 docProps/core.xml
?rw------- 2.0 unx 245 b- defN 24-Apr-23 00:58 docProps/custom.xml
14 files, 33307 bytes uncompressed, 7815 bytes compressed: 76.5%
```

This is the third issue I am creating of a similar problem. As long as the implementation depends on the order of files in an archive, we'll keep running into similar problems. What are your thoughts on this?

Kind Regards!
Aamir
Steps To Reproducefile --mime-type unsupported.xlsx
Tagsbug, magic

Activities

a1rind

2024-04-22 20:04

reporter  

unsupported.xlsx (9,794 bytes)

Issue History

Date Modified Username Field Change
2024-04-22 20:04 a1rind New Issue
2024-04-22 20:04 a1rind Tag Attached: bug
2024-04-22 20:04 a1rind Tag Attached: magic
2024-04-22 20:04 a1rind File Added: unsupported.xlsx