You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2017/03/22 14:07:12 UTC

[tika] branch master updated: TIKA-2307 avoid swallowing unsupported stream exception, wrap in TikaException

This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git

The following commit(s) were added to refs/heads/master by this push:
       new  58e1846   TIKA-2307 avoid swallowing unsupported stream exception, wrap in TikaException
58e1846 is described below

commit 58e18463c050574198944c909a97eeccd8fb48d7
Author: tballison <ta...@mitre.org>
AuthorDate: Wed Mar 22 10:07:04 2017 -0400

    TIKA-2307 avoid swallowing unsupported stream exception, wrap in TikaException
---
 .../src/main/java/org/apache/tika/parser/pkg/PackageParser.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tika-parsers/src/main/java/org/apache/tika/parser/pkg/PackageParser.java b/tika-parsers/src/main/java/org/apache/tika/parser/pkg/PackageParser.java
index e34306c..b8735bf 100644
--- a/tika-parsers/src/main/java/org/apache/tika/parser/pkg/PackageParser.java
+++ b/tika-parsers/src/main/java/org/apache/tika/parser/pkg/PackageParser.java
@@ -189,7 +189,7 @@ public class PackageParser extends AbstractParser {
                 throw new EncryptedDocumentException(zfe);
             }
             // Otherwise throw the exception
-            throw zfe;
+            throw new TikaException("UnsupportedZipFeature", zfe);
         } catch (PasswordRequiredException pre) {
             throw new EncryptedDocumentException(pre);
         } finally {

-- 
To stop receiving notification emails like this one, please contact
['"commits@tika.apache.org" <co...@tika.apache.org>'].