Last Updated: 20 Sep 2016 11:55 by ADMIN
Created on: 26 Apr 2016 05:14
Category: ZipLibrary
Type: Bug Report
ZipLibrary: Reading password-protected archive with wrong password throws generic exception
Reading a password protected archive by passing a wrong password doesn't notify the user that the password is wrong. Accessing one of the entries in the archive throws a generic "Invalid data" exception.

Steps to reproduce:
1. Create a zip file with password.
2. Open the same archive with the API passing wrong password and then try to one of the entries.
Observed: InvalidDataException is thrown when trying to read one of the entries in the archive.
Expected: The exception should be more meaningful and if possible occur when reading the archive. There should be API allowing to check if the password is correct.