If you included an attachment, it didn't make it through.

Are you getting a compile time or run time error? What is the error message
and stack trace?

You're welcome to read through the changelog at
https://poi.apache.org/changes.html to see what changes occurred. If you
don't find anything that explains your problem, you can search through
bugzilla or look for changes to the source if you can narrow it down to a
few files.

Did you try any other builds?

We have made quite a few improvements to password protection in the last
few versions, and it's possible that one or more of those changes broke
backwards compatibility. We aim for maintaining deprecated APIs for at
least 2 releases prior to removing or changing them, so you may want to
compile with 3.11 with deprecated usage ignored, then compile with 3.11
with deprecated usage as fatal, then compile with 3.13 and repeat, then
3.15 and repeat.

FYI, 3.15 is the latest final version. Any reason for testing with 3.14?

On Feb 27, 2017 3:20 AM, "Sateesh K Kolusu" <[email protected]>
wrote:

Hello all -  I have a Excel workbook with password protected. The
following code worked with APACHE POI 3.9 but not 3.14

if (POIFSFileSystem.hasPOIFSHeader(fileIn) == true)
         {
            try
            {
               workbook = new HSSFWorkbook(fileIn, bDocProps);
            }
            catch (EncryptedDocumentException encryptedEx)
            {
               encryptionException = true;
               // Supplied password is invalid for Excel 2003 file
               message = CC_UnstructuredResourceBundle.getString(
                     "CC_UNSTRUCTURED_MSG_EXCEL_INVALID_PASSWORD");

            }

Any inputs if there are changes in 3.14 will be appreciated.

---
Thanks
Sateesh

Reply via email to