From 5420e5f59b93169980a66a68864da1425547221c Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Tue, 29 Dec 2015 22:42:17 +0000 Subject: [PATCH] Disabled unit test for #58760 (problem remains) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722244 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/xssf/usermodel/TestXSSFBugs.java | 17 +++++++++++++++++ test-data/spreadsheet/58760.xlsx | Bin 0 -> 7408 bytes 2 files changed, 17 insertions(+) create mode 100644 test-data/spreadsheet/58760.xlsx 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 0000000000000000000000000000000000000000..9795f8c483f5546282cad1d632ab2d72d4bd4a7a GIT binary patch literal 7408 zcmb7JbzGF)wjPjfknWToLPT0RL>lQDVCZ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