Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev]CheckIn: Fix Bugzilla Bug --- 135809 DataException when render attached report from document to output.

Title: [birt-dev]CheckIn: Fix Bugzilla Bug --- 135809 DataException when render attached report from document to output.

Summary 

Bugzilla Bug (s) Resolved:
135809 DataException when render attached report from document to output.
Description:

If we read the last content in the content stream, it will throw out an IOException as the seek exceed the stream length.

To resolve this issue, add an API to the RAInputStream to get the stream length. And test if the offset is larger than or equal to the stream length in the reader of the content loader, if it is true, return NULL directly.


Test Description:
Manual Test/Unit Test
 
Files Edited:
cvs ci -m "return NULL if the offset is larger than or equal to the stream length" -l "/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/RAFolderInputStream.java" "/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/RAInputStream.java" "/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/RAFileInputStream.java"

cvs ci -m "return NULL if the offset is larger than or equal to the stream length" -l "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/internal/document/v2/ReportContentReaderV2.java"

Files Added:

Notes to Build Team:
 
Notes to Developers:

Notes to QA:
 
Quotes to Documentation:


-Wei Yan




Back to the top