Bug 58262 - ReadOnlySharedStringsTable should avoid trying to parse an empty stream
Summary: ReadOnlySharedStringsTable should avoid trying to parse an empty stream
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: SXSSF (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-19 11:08 UTC by David North
Modified: 2015-08-19 11:10 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David North 2015-08-19 11:08:06 UTC
The fix for bug 57482 has affected our hybrid streaming/DOM based parse (as demonstrated on bug 58219).

We initialize a ReadOnlySharedStringsTable from the OCPPackage obtained directly from an XSSFWorkbook. Unfortunately this now has an empty part for the SST which provides an empty stream, which the read-only shared strings table blows up trying to read.

ReadOnlySharedStringsTable already copes with the absence of an SST part, so I think it should behave similarly when the part has an empty stream.
Comment 1 David North 2015-08-19 11:10:28 UTC
Fixed in SVN r1696559