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 2023/10/16 10:52:43 UTC
[tika] branch branch_2x updated (d54950648 -> 0912610a6)
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a change to branch branch_2x
in repository https://gitbox.apache.org/repos/asf/tika.git
from d54950648 downgrade zookeeper, again
add 71f05160b TIKA-4154 -- parameterize json max string length -- fix unit test in tika-server-standard (#1403)
add e389afb45 TIKA-4154 -- fix unit test
new 0912610a6 TIKA-4157 -- bump max file count to 10k.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../tika/parser/microsoft/ooxml/OOXMLParser.java | 2 +
.../server/standard/JsonMaxFieldLengthTest.java} | 62 +++++++++++++---------
.../tika/server/standard/TikaResourceTest.java | 25 ---------
3 files changed, 38 insertions(+), 51 deletions(-)
copy tika-server/{tika-server-core/src/test/java/org/apache/tika/server/core/TikaResourceMetadataFilterTest.java => tika-server-standard/src/test/java/org/apache/tika/server/standard/JsonMaxFieldLengthTest.java} (59%)
[tika] 01/01: TIKA-4157 -- bump max file count to 10k.
Posted by ta...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch branch_2x
in repository https://gitbox.apache.org/repos/asf/tika.git
commit 0912610a6cdb1c22ade18189bb93c5ca966cce9b
Author: tallison <ta...@apache.org>
AuthorDate: Mon Oct 16 06:50:54 2023 -0400
TIKA-4157 -- bump max file count to 10k.
(cherry picked from commit df317837747ffe48c879e5821f99be0a7ba3ed52)
---
.../main/java/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 dea748b7e..f365dc94f 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<MediaType> getSupportedTypes(ParseContext context) {