https://bz.apache.org/bugzilla/show_bug.cgi?id=60320

            Bug ID: 60320
           Summary: issue opening password protected xlsx
           Product: POI
           Version: 3.15-FINAL
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 34408
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34408&action=edit
password protected xlsx

I will attach TestThisEncryption.xlsx. The password is: Test001!!
This opens ok in Excel but Poi fails to decrypt it using the password.
It seems to happen if the xlsx is created in one Excel version and then later
password protected with a recent version of Excel on Windows.
If anyone has any insight into why this workbook won't decrypt in Poi 3.15 that
would be appreciated.

This is the decryptor check that fails for me:

  def checkPassword(fileName: String, password: String) {
    val fs = new POIFSFileSystem(new FileInputStream(fileName))
    val info = new EncryptionInfo(fs)
    val decryptor = Decryptor.getInstance(info)
    println(s"$fileName password works? ${decryptor.verifyPassword(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]

Reply via email to