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

Bug 326794

Summary: Wrong AppContext is passed to ODA when dataset is used inside a Cube
Product: z_Archived Reporter: guillaume.michel
Component: BIRTAssignee: Birt-Data-inbox <Birt-Data-inbox>
Status: VERIFIED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: bluesoldier, lchan, lzhu
Version: unspecified   
Target Milestone: 3.7.0   
Hardware: PC   
OS: Windows XP   
Whiteboard: Obsolete
Attachments:
Description Flags
Project to reproduce the issue + inputs + erroneous results
none
The report generation output. none

Description guillaume.michel CLA 2010-10-01 11:29:10 EDT
Build Identifier: M20090917-0800

An ODA has been done using the ODA Wizard (in Eclipse).
This ODA is the dummy one (data result is an array of 6 lines and 2 rows - strings). The 2nd column is made of static data + data coming from AppContext. 

A java application has been made to run reports and provides AppContext value ("yahoo"). It should generate PDF files that contains the AppContext value ("yahoo").

5 reports (.rptdesign) have been created using this ODA (1 Datasource + 1 Dataset).
1 report with 1 unique table
4 reports mixing tables and 1 crosstab

The first report (unique table) is properly generated and rendered.
The others are not properly generated. The AppContext value ("yahoo") is not always present in the table(s) and crosstab.

A project is provided in attachment, with all rptdesign files, generated PDF, source code of the main JAVA file and ODA and ODA designer source files.



Reproducible: Always

Steps to Reproduce:
Build the main project and launch the main (in DemoBirtReportManagerTest class).
Comment 1 guillaume.michel CLA 2010-10-01 11:45:22 EDT
Created attachment 180070 [details]
Project to reproduce the issue + inputs  + erroneous results

This zip contains
- PROJECT
- ODA plugins compiled
- ODA sources
- RPT input files
- PDF erroneous files

The BIRT engine used is 2.5.1.
The lib used in the main project are:
-codec-1.3.0.jar
-coreapi-2.5.1.jar
-crosstabcoreapi-2.5.1.jar
-dteapi-2.5.1.jar
-engineapi-2.5.1.jar
-fontbox-0.1.0.jar
-icu-4.0.1.jar
-js-2.5.0.jar
-modelapi-2.5.1.jar
Comment 2 guillaume.michel CLA 2010-10-01 11:59:41 EDT
Additional information:

in our real ODA, the AppContext value s used to get credentials of the user.
It is not a report parameter but a connection context.

In the demo we simplified the ODA and the AppContext usage.
Comment 3 Lin Zhu CLA 2011-02-23 13:23:43 EST
This bug is obsoleted. Please try latest BIRT 2.6 build. Please refer to attached generated pdf files, which should all be fine.
Comment 4 Lin Zhu CLA 2011-02-23 13:24:28 EST
Created attachment 189625 [details]
The report generation output.
Comment 5 Xiaoying Gu CLA 2011-02-25 03:40:59 EST
The issue can be reproduced in 2.5.1 release, but it can not be reproduced in the latest 2.6.2 release.
Set as verified.