Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326794 - Wrong AppContext is passed to ODA when dataset is used inside a Cube
Summary: Wrong AppContext is passed to ODA when dataset is used inside a Cube
Status: VERIFIED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.7.0   Edit
Assignee: Birt-Data-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard: Obsolete
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-01 11:29 EDT by guillaume.michel CLA
Modified: 2011-05-26 13:33 EDT (History)
3 users (show)

See Also:


Attachments
Project to reproduce the issue + inputs + erroneous results (1.39 MB, application/x-zip-compressed)
2010-10-01 11:45 EDT, guillaume.michel CLA
no flags Details
The report generation output. (6.85 KB, application/x-zip-compressed)
2011-02-23 13:24 EST, Lin Zhu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.