Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348296

Summary: XMLWriter eats IOExceptions
Product: z_Archived Reporter: Scott Hamilton <scott.hamilton>
Component: BIRTAssignee: Jianchao Li <jianchao.li>
Status: VERIFIED WORKSFORME QA Contact: Wei Yan <wyan>
Severity: normal    
Priority: P3 CC: bluesoldier, wyan, zqian
Version: unspecified   
Target Milestone: 4.4.1   
Hardware: All   
OS: All   
Whiteboard:

Description Scott Hamilton CLA 2011-06-03 22:22:31 EDT
Build Identifier: 2.6.1

org.eclipse.birt.report.engine.emitter.XMLWriter.print(String) when writing to the writer will catch IOException and completely swallow it/ignore it.

This means that if the disk is full, a connection is closed, or if there is a quota on size enforced at the IO layer... the report just keeps on going without a care.

Reproducible: Always

Steps to Reproduce:
1. Wrap an output stream with one you can thrown an IOException in the write method.
2. Give it to BIRT and generate a report.
Comment 1 Zhiqiang Qian CLA 2014-07-28 17:58:30 EDT
Mark as fixed. see commit 66bc102f4971c74e5b550b4b61d494603508ec5c.
Comment 2 Wei Yan CLA 2014-09-18 14:24:18 EDT
v, log the exception out instead of eat it silently.