Skip to content

Add ability to open password protected sheets #87

@rnveach

Description

@rnveach

A password protected ODS is throwing the following exception:

java.util.zip.ZipException: only DEFLATED entries can have EXT descriptor
	at java.base/java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:313)
	at java.base/java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:125)
	at com.github.miachm.sods.Uncompressor.nextFile(Uncompressor.java:17)
	at com.github.miachm.sods.OdsReader.load(OdsReader.java:51)
	at com.github.miachm.sods.OdsReader.load(OdsReader.java:38)
	at com.github.miachm.sods.SpreadSheet.<init>(SpreadSheet.java:61)
	at com.github.miachm.sods.SpreadSheet.<init>(SpreadSheet.java:48)
	at Test.main(Test.java:15)

Duplicating the file with no password works without issue.

Code used is the same as BasicUsage in the readme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions