aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java17
-rw-r--r--test-data/spreadsheet/58760.xlsxbin0 -> 7408 bytes
2 files changed, 17 insertions, 0 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
index e6719ed272..870a8c4e5d 100644
--- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
+++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
@@ -2871,4 +2871,21 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
assertNotNull(sheet.getRow(0).getCell(0));
assertEquals(bookData[0][0], sheet.getRow(0).getCell(0).getStringCellValue());
}
+
+ /**
+ * Regression between 3.10.1 and 3.13 -
+ * org.apache.poi.openxml4j.exceptions.InvalidFormatException:
+ * The part /xl/sharedStrings.xml does not have any content type
+ * ! Rule: Package require content types when retrieving a part from a package. [M.1.14]
+ */
+ @Test
+ @Ignore
+ public void test58760() throws Exception {
+ Workbook wb = XSSFTestDataSamples.openSampleWorkbook("58760.xlsx");
+ assertEquals(1, wb.getNumberOfSheets());
+ assertEquals("Sheet1", wb.getSheetName(0));
+ wb = XSSFTestDataSamples.writeOutAndReadBack(wb);
+ assertEquals(1, wb.getNumberOfSheets());
+ assertEquals("Sheet1", wb.getSheetName(0));
+ }
}
diff --git a/test-data/spreadsheet/58760.xlsx b/test-data/spreadsheet/58760.xlsx
new file mode 100644
index 0000000000..9795f8c483
--- /dev/null
+++ b/test-data/spreadsheet/58760.xlsx
Binary files differ