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

Bug 350313

Summary: BIRT Viewer scrambles urls when includes __format=HTML
Product: z_Archived Reporter: James Stoddard <stoddardtec>
Component: BIRTAssignee: Birt-ReportViewer <Birt-ReportViewer-inbox>
Status: NEW --- QA Contact: Xiaoying Gu <bluesoldier>
Severity: major    
Priority: P3 CC: bluesoldier, ning.zhang
Version: 2.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
shows error with parameter changed but not updated none

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.