Bug 512191 - Parameter file URL not correctly decoded
Summary: Parameter file URL not correctly decoded
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 4.6.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-14 11:33 EST by Frank Benoit CLA
Modified: 2017-02-14 11:33 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Benoit CLA 2017-02-14 11:33:40 EST
I start BIRT from command line with the org.eclipse.birt.report.engine.api.ReportRunner class.

In my report, i use a parameter to get a file URL to read the XML data for the report.

e.g. file:///c:/temp/data.xml

This works. But when i have spaces or other chars, BIRT does not decode the URL correctly.

e.g. file:///c:/temp%20dir/data%20%23123.xml, this should access the file "c:\temp dir\data #123.xml". 
Instead BIRT reports, it cannot access "c:\temp0dir\data03123.xml".
It seems, it just removes the '%2' from that file URL.

Passing a file path results in "incorrect URL".
Passing a file URL like this: file:///c:/temp dir/data #123.xml works