[
https://issues.apache.org/jira/browse/TIKA-2300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Allison resolved TIKA-2300.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.15
2.0
[~aeham.abushwashi] I added a stacktrace to the parent's metadata object for
encrypted files, or for any stream that can't be read.
Going forward, it will be helpful to figure out how to determine a) encryption
(for non-zip) files or b) other reasons that a stream might not be readable.
For now, the embedded exception is an encryption exception for your test stream
and a general TikaException for any other reason that a package stream can't be
read.
Thank you for the issue and the patch!
> Can't tell if a zip file is encrypted
> -------------------------------------
>
> Key: TIKA-2300
> URL: https://issues.apache.org/jira/browse/TIKA-2300
> Project: Tika
> Issue Type: Bug
> Affects Versions: 1.14
> Reporter: Aeham Abushwashi
> Assignee: Tim Allison
> Fix For: 2.0, 1.15
>
> Attachments: encrypted_file.zip, TIKA-2300.patch
>
>
> When Tika processes a zip file that is protected with a password, it will
> return the list of file names within the zip but no indication (as an
> exception or in metadata) that the file is encrypted.
> From stepping through the code, I can see that the information needed to
> determine whether the archive is encrypted is available inside
> ZipArchiveEntry#getGeneralPurposeBit#usesEncryption, but needs to be relayed
> back to PackageParser somehow
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)