poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 35897] Password protected files
Date Fri, 10 Jan 2014 04:41:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=35897

--- Comment #8 from Trejkaz (pen name) <trejkaz@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


Mime
View raw message