https://bz.apache.org/bugzilla/show_bug.cgi?id=69618
Bug ID: 69618 Summary: ZipPackage.saveImpl swallows multiple errors Product: POI Version: 5.3.0-FINAL Hardware: PC Status: NEW Severity: normal Priority: P2 Component: XSSF Assignee: dev@poi.apache.org Reporter: eckhart.woer...@estradis.com Target Milestone: --- org.apache.poi.openxml4j.opc.ZipPackage.saveImpl seems to swallow multiple errors: * the return code of this.contentTypeManager.save(...) is ignored * the return code of ZipPartMarshaller.marshallRelationshipPart(...) is ignored When any of these two calls returns false, an immediate exception should be thrown. Consequences: * If the output stream breaks in the first call, three different log messages are generated (each call produces its own log message when an IOException is thrown) * Unlikely, but depending on the behavior of the output stream: if the subsequent call to pm.marshall(...) succeeds, a corrupt file is written to the output stream without throwing any exception. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org