From 5dbd0811791c577bec6632a9d8ac7e98ddc99677 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 14 Oct 2021 09:04:53 +0000 Subject: [PATCH] setDisallowDocTypeDeclaration git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894222 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/stress/TestAllFiles.java | 1 + .../org/apache/poi/stress/XWPFFileHandler.java | 2 +- .../src/test/java9/module-info.class | Bin 684 -> 686 bytes 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java b/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java index a06606f0d2..9eda9586f6 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java @@ -75,6 +75,7 @@ public class TestAllFiles { "**/.svn/**", "lost+found", "**/.git/**", + "**/ExternalEntityInText.docx", //the DocType (DTD) declaration causes this to fail "**/right-to-left.xlsx" //the threaded comments in this file cause XSSF clone to fail }; diff --git a/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java index b61128f63f..999869773d 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java @@ -28,7 +28,7 @@ import org.junit.jupiter.api.Test; class XWPFFileHandler extends AbstractFileHandler { private static final Set EXPECTED_FAILURES = StressTestUtils.unmodifiableHashSet( - "document/truncated62886.docx" + "document/truncated62886.docx", "document/ExternalEntityInText.docx" ); @Override diff --git a/poi-integration/src/test/java9/module-info.class b/poi-integration/src/test/java9/module-info.class index 4f3e0f3bba004cc9cc1e2bd5f93b56cd7b70a5f2..92a6b8ee9e339185c5cc8be8ce8b4c661fec9313 100644 GIT binary patch delta 40 ucmZ3(x{h^1l(2=Kp)iBIFoOak1G}M~ArM(k%#~teHPJKDGu+s%$OHhYVhA(< delta 38 scmZ3-x`uT^l(4y;kuZb2FoOak1G}M~ArKi)%#~tcHqkTM*sI6{0GkB|%>V!Z -- 2.39.5