From 7d8da8ea593d5d44634dd23e498bcc646a3f5a62 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Mon, 2 Apr 2018 17:15:42 +0000 Subject: Bug 61267: detect Word v2 files and report that they are not supported in Apache POI git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1828176 13f79535-47bb-0310-9956-ffa450edef68 --- src/integrationtest/org/apache/poi/TestAllFiles.java | 2 ++ src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/integrationtest') diff --git a/src/integrationtest/org/apache/poi/TestAllFiles.java b/src/integrationtest/org/apache/poi/TestAllFiles.java index 77651274e4..333a8ebcdc 100644 --- a/src/integrationtest/org/apache/poi/TestAllFiles.java +++ b/src/integrationtest/org/apache/poi/TestAllFiles.java @@ -302,6 +302,8 @@ public class TestAllFiles { "spreadsheet/poc-xmlbomb.xlsx", // contains xml-entity-expansion "spreadsheet/poc-xmlbomb-empty.xlsx", // contains xml-entity-expansion "spreadsheet/poc-shared-strings.xlsx", // contains shared-string-entity-expansion + "document/61612a.docx", + "document/word2.doc", // old Excel files, which we only support simple text extraction of "spreadsheet/testEXCEL_2.xls", diff --git a/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java b/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java index a5baa4adbc..680cac8398 100644 --- a/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java +++ b/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java @@ -54,7 +54,8 @@ public class HPSFFileHandler extends POIFSFileHandler { "spreadsheet/55982.xls", "spreadsheet/testEXCEL_3.xls", "spreadsheet/testEXCEL_4.xls", - "hpsf/Test_Humor-Generation.ppt" + "hpsf/Test_Humor-Generation.ppt", + "document/word2.doc" ); static final Set EXCLUDES_HANDLE_FILE = unmodifiableHashSet( -- cgit v1.2.3