Fix for test-data of #59746
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750033 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
05f704d112
commit
5fce29e432
@ -49,10 +49,8 @@ public class FromHowTo {
|
||||
|
||||
XMLReader parser = fetchSheetParser(sst);
|
||||
|
||||
// To look up the Sheet Name / Sheet Order / rID,
|
||||
// you need to process the core Workbook stream.
|
||||
// Normally it's of the form rId# or rSheet#
|
||||
InputStream sheet2 = r.getSheet("rId2");
|
||||
// process the first sheet
|
||||
InputStream sheet2 = r.getSheetsData().next();
|
||||
InputSource sheetSource = new InputSource(sheet2);
|
||||
parser.parse(sheetSource);
|
||||
sheet2.close();
|
||||
|
@ -118,8 +118,8 @@ public class XSSFFileHandler extends SpreadsheetHandler {
|
||||
private static final Set<String> EXPECTED_ADDITIONAL_FAILURES = new HashSet<String>();
|
||||
static {
|
||||
// expected sheet-id not found
|
||||
EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/52348.xlsx");
|
||||
EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/59021.xlsx");
|
||||
// EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/52348.xlsx");
|
||||
// EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/59021.xlsx");
|
||||
// zip-bomb
|
||||
EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/54764.xlsx");
|
||||
EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/54764-2.xlsx");
|
||||
|
Loading…
Reference in New Issue
Block a user