From 787af858e72b0c60ea8b89d47fed230c5582fb62 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 18 Oct 2021 17:34:12 +0000 Subject: add problem file to build git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894359 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java | 12 ++++++++++++ .../bib-chernigovka.netdo.ru_download_docs_17459.docx | Bin 0 -> 47023 bytes 2 files changed, 12 insertions(+) create mode 100644 test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx diff --git a/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java b/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java index b630075831..f6339332e1 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java @@ -139,4 +139,16 @@ class TestXWPFBugs { zf.close(); } } + + @Test + void missingXsbs() throws IOException, XmlException { + String[] files = {"bib-chernigovka.netdo.ru_download_docs_17459.docx"}; + for (String f : files) { + ZipFile zf = new ZipFile(samples.getFile(f)); + ZipArchiveEntry entry = zf.getEntry("word/document.xml"); + DocumentDocument document = DocumentDocument.Factory.parse(zf.getInputStream(entry)); + assertNotNull(document); + zf.close(); + } + } } \ No newline at end of file diff --git a/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx b/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx new file mode 100644 index 0000000000..e62c2ef39f Binary files /dev/null and b/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx differ -- cgit v1.2.3