You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2014/01/10 05:41:35 UTC
[Bug 35897] Password protected files
https://issues.apache.org/bugzilla/show_bug.cgi?id=35897
--- Comment #8 from Trejkaz (pen name) <tr...@trypticon.org> ---
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org