You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2017/03/22 15:00:48 UTC

[jira] [Commented] (TIKA-2307) Accidentally swallowing UnsupportedZipFeatureException in rare cases

    [ https://issues.apache.org/jira/browse/TIKA-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15936475#comment-15936475 ] 

Hudson commented on TIKA-2307:
------------------------------

SUCCESS: Integrated in Jenkins build Tika-trunk #1225 (See [https://builds.apache.org/job/Tika-trunk/1225/])
TIKA-2307 avoid swallowing unsupported stream exception in PackageParser (tallison: [https://github.com/apache/tika/commit/c4660b4f7debf7870742ba4e1da296c20dca1292])
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/pkg/PackageParser.java
TIKA-2307 avoid swallowing unsupported stream exception, wrap in (tallison: [https://github.com/apache/tika/commit/58e18463c050574198944c909a97eeccd8fb48d7])
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/pkg/PackageParser.java


> Accidentally swallowing UnsupportedZipFeatureException in rare cases
> --------------------------------------------------------------------
>
>                 Key: TIKA-2307
>                 URL: https://issues.apache.org/jira/browse/TIKA-2307
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>            Reporter: Tim Allison
>            Priority: Trivial
>             Fix For: 2.0, 1.15
>
>
> It looks from this comment in the PackageParser that we mean to re-throw this exception, but we aren't.
> {noformat}
> catch (UnsupportedZipFeatureException zfe) {
>             // If it's an encrypted document of unknown password, report as such
>             if (zfe.getFeature() == Feature.ENCRYPTION) {
>                 throw new EncryptedDocumentException(zfe);
>             }
>             // Otherwise fall through to raise the exception as normal
>         }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)