Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350313 - BIRT Viewer scrambles urls when includes __format=HTML
Summary: BIRT Viewer scrambles urls when includes __format=HTML
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.2   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportViewer CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 13:50 EDT by James Stoddard CLA
Modified: 2012-09-10 06:00 EDT (History)
2 users (show)

See Also:


Attachments
shows error with parameter changed but not updated (78.24 KB, image/png)
2011-06-24 13:50 EDT, James Stoddard CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Stoddard CLA 2011-06-24 13:50:28 EDT
Created attachment 198560 [details]
shows error with parameter changed but not updated

If report is sent to viewer with __format=HTML on the end, the report will run with the correct parameters once, but if the parameters are changed inside the Viewer by selecting the run report button a second time the newly entered parameters will not be used in running the report. 

I also discovered that if the parameter is lower case, __format=html rather than __format=HTML it appears to work at least some times.

The URL includes a '&' at the end.  If the extra '&' is removed from the end of the URL the newly entered parameters will be used.

I tried this in 2.6.0 and 2.6.2 with the same problem.
Comment 1 Ning Zhang CLA 2012-09-10 05:18:31 EDT
Hi james,

Did you use the birt designer to launch the viewer and preview the report file, or did you use the birt runtime?

I have tested on birt 2.6.3 and 3.7.0, and these builds are working fine.

BTW, what did you mean by "__format=HTML"? During my test the url never comes in with uppercase "HTML", but always with lowercase, and there is no "__format" parameter when previewing in the birt-runtime.
Comment 2 Ning Zhang CLA 2012-09-10 06:00:07 EDT
This can be reproduced by deploying the birt runtime and manually adding the "__format=HTML" parameter, which are upper case letters, to the url.