Skip to content

[bug?] unable to getData from a password zip with checkPasswordOnly #575

@lslzl3000

Description

@lslzl3000

for a password protected zip, if read with checkPasswordOnly, unable to getData, always return undefined
e.g. a zip with a json file and password test : d.zip

let zipReader = new ZipReader(new BlobReader(file), {
    checkPasswordOnly: true,
    password: 'test'
});
const entries = await zipReader.getEntries();
const content = await entries[0].getData(new TextWriter()); // will return undefined

if not set checkPasswordOnly, the content will be returned, but how to check if the zip was set the target password or not?
zipReader can read anyway for a non-password zip without checkPasswordOnly, unable to check if the right password was set. meanwhile unable to getData with checkPasswordOnly

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