https://bz.apache.org/bugzilla/show_bug.cgi?id=57593
Nick Burch <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO --- Comment #11 from Nick Burch <[email protected]> --- Can you see if the file can be decrypted by POI using the default Excel password? (VelvetSweatshop). My guess is that the file has been "protected" with that default password, which is why you can read it in Excel without being prompted for a password, but why it is stored in the encrypted form On a related note, I wonder if we should have overloaded / altenate WorkbookFactory methods which also take a password? Your code could then be something like: try { wb = WorkbookFactory.create(file); } catch (EncryptedDocumentException e) { String password = promptUserForPassword(file); wb = WorkbookFactory.create(file, password); } -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
