From 0912610a6cdb1c22ade18189bb93c5ca966cce9b Mon Sep 17 00:00:00 2001 From: tallison Date: Mon, 16 Oct 2023 06:50:54 -0400 Subject: [PATCH] TIKA-4157 -- bump max file count to 10k. (cherry picked from commit df317837747ffe48c879e5821f99be0a7ba3ed52) --- .../org/apache/tika/parser/microsoft/ooxml/OOXMLParser.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParser.java b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParser.java index dea748b7e2..f365dc94f8 100644 --- a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParser.java +++ b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParser.java @@ -101,6 +101,8 @@ public class OOXMLParser extends AbstractOfficeParser { static { //turn off POI's zip bomb detection because we have our own ZipSecureFile.setMinInflateRatio(-1.0d); + //bump this to a higher value than POI's default of 1000 + ZipSecureFile.setMaxFileCount(10000); } public Set getSupportedTypes(ParseContext context) {