https://bz.apache.org/bugzilla/show_bug.cgi?id=57593
Nick Burch <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |INVALID --- Comment #7 from Nick Burch <[email protected]> --- (In reply to Vasili from comment #5) > Look, how it behaves... > > >java -jar tika-app-1.7.jar --detect 096113YE06.xlsm > application/x-tika-ooxml-protected > > I'm wondering whether you can detect the file correctly from HSSF by other > means (not raising the Exception, I guess BIFF8 may exist even in the 1st > case - if it's not the Office which adds it). Is it possible? I'd suggest you try opening it with XSSFWorkbook. If it's really XSSF, it'll open. If it's encrypted, you'll get an EncryptedDocumentException and you know to try decrytping it. If it's really a .xls file, you'll get (IIRC) an InvalidFormatException to tell you to retry with HSSF Otherwise, you should be fine using WorkbookFactory.create and catching EncryptedDocumentException. (Use a nightly / 3.12 beta 1 when out though, some improvements have happened) -- 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]
