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