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

--- Comment #10 from Vasili <[email protected]> ---
Just a correction here (due to resolving of a CLASSPATH issue on my side, which
was taking poi-3.7-20101029.jar)

So, now the file in question is throwing the EncryptedDocumentException, as you
had expected. 

org.apache.poi.EncryptedDocumentException: The supplied spreadsheet seems to be
an Encrypted .xlsx file. It must be decrypted before use by XSSF, it cannot be
used by HSSF
    at
org.apache.poi.hssf.usermodel.HSSFWorkbook.getWorkbookDirEntryName(HSSFWorkbook.java:252)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:308)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:288)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:223)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:381)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:363)
    at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:84)



However the file seems to be not encrypted, although detected by all the tools
as encrypted

$ file 096113YE06.xlsm
096113YE06.xlsm: Composite Document File V2 Document, Encrypted

while after opening and immediate closing without any other internal
modifications (and no passwords known) it is determined as:

$ file 096113YE06_just_resaved.xlsm
096113YE06_just_resaved.xlsm: Microsoft Excel 2007+

Any suggestions? (We can't know the password because there is no password
there)

Thanks and sorry for the confusion with the old version.

-- 
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