Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314259 - Reource handling problem
Summary: Reource handling problem
Status: CLOSED DUPLICATE of bug 306277
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportDesigner CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 08:47 EDT by Zsalab CLA
Modified: 2010-05-25 21:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zsalab CLA 2010-05-25 08:47:30 EDT
Build Identifier: M20100211-1343

The resource path setup in BIRT designer is not working on preview mode.
If has multiple reports in one report project in separated folders the preview can't load the rptdesign if it's containing different resource link then relative path.
The following method call the ModuleUtil.checkVersion() method, but it is not has the reosurce folder setup. It's generate NullPointerException (load on RPTLibrary).
org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.addPages()
If the check disabled by directly on code, the resource locator get the exactly value of preferences resource folder option, for example {$project_loc}.
It is not resolving the variables, and cant load the rptdesign. It's generate NullPointerException too (load on RPTLibrary).
I know if, the resource folder empty in preferences the resource explorer working fine, because it is handling it as current project folder but the editor not working with relative path of project folder.
Please fix this bug.

Reproducible: Always

Steps to Reproduce:
1. Create a report project
2. Create two subdirectory in project
3. Create two rptdesign in each folder
4. Create two subfolder in each folder for resources (name: RESOURCES)
5. Set up the resource folder to {$project_loc}, or leave empty
6. Create two RPTLibrary in each RESOURCES folder
7. Assign the each RPTLibrary to the parent folder containing rptdesign
8. Check the resource assignment in rptdesign source (be to relative from report project), because that is the setup.
9. Open the rptdesign in designer
10., Look the exception
Comment 1 Zhiqiang Qian CLA 2010-05-25 21:15:19 EDT

*** This bug has been marked as a duplicate of bug 306277 ***