https://issues.apache.org/bugzilla/show_bug.cgi?id=35897
--- Comment #8 from Trejkaz (pen name) <[email protected]> --- Bumping this to ask: can HSSF at least throw EncryptedDocumentException for encrypted documents? Currently, this is what I'm seeing: org.apache.poi.hssf.record.RecordFormatException: HSSF does not currently support XOR obfuscation at org.apache.poi.hssf.record.FilePassRecord.<init>(FilePassRecord.java:52) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.apache.poi.hssf.record.RecordFactory$ReflectionConstructorRecordCreator.create(RecordFactory.java:57) This is thrown from the FilePassRecord constructor. The hack Antoni has described above seems to rely on FilePassRecord being successfully constructed, so I guess that won't help. At the moment, our code is catching EncryptedDocumentException, but then these cases fall through the cracks, because the wrong exception has been thrown. -- 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]
