From 1bb5f644f154b03714c4b250fd845ae68af00927 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Tue, 20 Feb 2024 21:09:48 +0000 Subject: [PATCH] Fix Ant-build after upgrade of commons-compress Commons-lang3 is now required as dependency of commons-compress git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915909 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 7 +++++-- .../poi/openxml4j/util/ZipArchiveThresholdInputStream.java | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build.xml b/build.xml index 493a9a99b7..7e6a70e68f 100644 --- a/build.xml +++ b/build.xml @@ -334,6 +334,7 @@ under the License. + @@ -458,6 +459,7 @@ under the License. + @@ -825,6 +827,7 @@ under the License. + @@ -867,6 +870,7 @@ under the License. + @@ -2566,7 +2570,6 @@ under the License. - @@ -2587,7 +2590,6 @@ under the License. - @@ -2646,6 +2648,7 @@ under the License. + diff --git a/poi-ooxml/src/main/java/org/apache/poi/openxml4j/util/ZipArchiveThresholdInputStream.java b/poi-ooxml/src/main/java/org/apache/poi/openxml4j/util/ZipArchiveThresholdInputStream.java index 6c65589ddc..68c813dbbb 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/openxml4j/util/ZipArchiveThresholdInputStream.java +++ b/poi-ooxml/src/main/java/org/apache/poi/openxml4j/util/ZipArchiveThresholdInputStream.java @@ -147,7 +147,7 @@ public class ZipArchiveThresholdInputStream extends FilterInputStream { } try { - entry = ((ZipArchiveInputStream) in).getNextZipEntry(); + entry = ((ZipArchiveInputStream) in).getNextEntry(); if (guardState && entry != null) { if (++entryCount > MAX_FILE_COUNT) { throw new IOException(String.format(Locale.ROOT, MAX_FILE_COUNT_MSG, MAX_FILE_COUNT));