Error while parsing XLSX with one of the file's name starting with uppercase letter inside #439
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#439
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have a XLSX file containing
xl/SharedStrings.xml
inside. Trying to run:leads to the error:
Cannot find file xl/sharedStrings.xml in zip
. The problem is that my SharedStrings starts with uppercase letter but the parser tries to get sharedStrings which begins with lowercase letter.Please, consider my PR to solve the issue: https://github.com/SheetJS/js-xlsx/issues/439
Another PR: https://github.com/protobi/js-xlsx/pull/46
@chikh do you have a sample file? For this error to occur, the
[Content_Types].xml
file must be pointing toxl/sharedStrings.xml
with a lowercases
This is in fact a bug. Even though writers should be case-sensitive, readers should be case-insensitive according to ECMA-376 Part 2 Section 10.1.2 "Mapping Content Types".
The lay of the land is as follows:
Instead of duplicating the object and doing a check, it would be more efficient to check key by key