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 2024/03/25 11:34:29 UTC

(tika) branch TIKA-4219-branch_2x updated: TIKA-4219 -- throw SAX

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

tallison pushed a commit to branch TIKA-4219-branch_2x
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/TIKA-4219-branch_2x by this push:
     new d9ec5519d TIKA-4219 -- throw SAX
d9ec5519d is described below

commit d9ec5519d020fbde8ceef38caad18fe762af4c84
Author: tallison <ta...@apache.org>
AuthorDate: Mon Mar 25 07:34:15 2024 -0400

    TIKA-4219 -- throw SAX
---
 .../src/main/java/org/apache/tika/parser/epub/EpubParser.java         | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/epub/EpubParser.java b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/epub/EpubParser.java
index f9c946bc4..ab51729fc 100644
--- a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/epub/EpubParser.java
+++ b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/epub/EpubParser.java
@@ -352,6 +352,10 @@ public class EpubParser extends AbstractParser {
                 }
             }
         }
+        //throw SAXException if any from the parse of the body contents
+        for (SAXException e : saxExceptions) {
+            throw e;
+        }
         return encryptedItems;
     }