aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java12
-rw-r--r--test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docxbin0 -> 47023 bytes
2 files changed, 12 insertions, 0 deletions
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
--- /dev/null
+++ b/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx
Binary files differ