/[Apache-SVN]
ViewVC logotype

Revision 1851084


Jump to revision: Previous Next
Author: gwoolsey
Date: Fri Jan 11 18:20:03 2019 UTC (5 years, 5 months ago)
Changed paths: 2
Log Message:
Bug #60977 writing XSSF with custom properties twice corrupts output

turns out the output XML data buffer for the custom properties document was appended to, not replaced, when writing in the presence of existing content.  Now clearing output buffer first in this case.  When first creating custom properties, i.e. first write after changes, there is no buffer yet, so nothing to clear.

Does not affect any read operations, or other writes beyond custom properties, as that was where the problem lay, not down in the Zip stuff.

Changed paths

Path Details
Directorypoi/trunk/src/ooxml/java/org/apache/poi/ooxml/POIXMLProperties.java modified , text changed
Directorypoi/trunk/src/ooxml/testcases/org/apache/poi/ooxml/TestPOIXMLProperties.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26