On Wed, 21 Nov 2012, Juha Haaga wrote:
Caused by:
org.apache.commons.compress.archivers.zip.UnsupportedZipFeatureException:
unsupported feature encryption used in entry …
Is this error caused by lack of password or lack of zip decrypting
functionality? Is it possible to provide the zip file password to the
tika-server in the http headers?
Some Tika parsers do support decrypting password protected files. This
works by you supplying a PasswordProvider object on the ParseContext,
which is used to get the decryption password during parsing
However, it looks like the zip parser doesn't do this. I'd suggest you
open an enhancement request in JIRA for it. It looks like it'll need a bit
of work on Tika to add the password fetching to the compress parser, and
some work with Commons Compress to finish off COMPRESS-88 so that the
unerlying library supports it.
It may take some time, but if it's important to you I'd suggest you give
the commons team a hand!
Nick