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 a5420b0b79..64e199f83e 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -1860,9 +1860,21 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues { // Now check the spreadsheet itself // TODO Fix then enable -// XSSFWorkbook wb = new XSSFWorkbook(pkg); -// XSSFSheet s = wb.getSheetAt(0); - // TODO Check +/* + try { + new XSSFWorkbook(pkg); + fail("Should fail as too much expansion occurs"); + } catch(POIXMLException e) { + // Expected + } */ + + // Try with one with the entities in the Content Types + try { + XSSFTestDataSamples.openSamplePackage("54764-2.xlsx"); + fail("Should fail as too much expansion occurs"); + } catch(Exception e) { + // Expected + } } /** diff --git a/test-data/spreadsheet/54764-2.xlsx b/test-data/spreadsheet/54764-2.xlsx new file mode 100644 index 0000000000..0d942ca8d3 Binary files /dev/null and b/test-data/spreadsheet/54764-2.xlsx differ