https://bz.apache.org/bugzilla/show_bug.cgi?id=66337

--- Comment #15 from [email protected] ---
I analyzed this here https://github.com/apache/poi/issues/1051

“

If I create a new HSSFWorkbook without a template.
Like
HSSFWorkbook wb = new HSSFWorkbook(); wb.write(new
FileOutputStream("testfile"));

Then, all versions above "5.0.1" create this warning
08:38:09,198  WARN POIDocument - DocumentSummaryInformation property set came
back as null 08:38:09,205  WARN POIDocument - SummaryInformation property set
came back as null

The cause is, that when "getBytes()" is called; then updateEncryptionInfo calls
readProperties() from an empty POIDocument. The missing Records are only added
later in getBytes(), when they are read from the internal wb.

I don't know what the correct fix is here. Replace readProperties() with
readProperties(false) (same behavior as in older versions)
Or, updateEncryptionInfo working agains the wb, or calling updateEncryptionInfo
later.

“

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to