Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319928 - Engine wants to write files to library
Summary: Engine wants to write files to library
Status: VERIFIED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7.0   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-14 18:24 EDT by Byron Palmer CLA
Modified: 2011-05-26 13:32 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Byron Palmer CLA 2010-07-14 18:24:35 EDT
The report engine running alone wants to write files to the ReportEngine directory, specifically the configuration directories. This is a problem because the users typically do not have permission to write to these directories as they could possibly cause problems. 

It writes out a log file indicating that it has problems
!MESSAGE The -clean (osgi.clean) option was not successful. Unable to clean the storage area: K:\OBSS-Test\lib\ReportEngine\configuration\org.eclipse.osgi



It also gives an error

!MESSAGE Unable to save configuration file "K:\OBSS-Test\lib\ReportEngine\configuration\org.eclipse.update\platform.xml.tmp"

Why is it doing this? Can it be stopped. I don't want to give the users write access to that directory.
Comment 1 Gang Liu CLA 2010-12-22 02:34:09 EST
User can specify a writable configuration folder for Report Engine, also should copy the config.ini file to the configuration folder.
Sample Code:
EngineConfig config = new EngineConfig( );
....
HashMap osgiProperties = new HashMap();
osgiProperties .put("osgi.configuration.area", configFolder);
config.setOSGiConfig(map);
Platform.startup( config );
Comment 2 Byron Palmer CLA 2010-12-22 12:40:13 EST
Thanks. I didn't realize that one could do this. Moving forward this will be wonderful, and so simple a fix. Every time I upgraded the report engine I would have to go in and change the permissions. Now that is not necessary.
Comment 3 Xiaoying Gu CLA 2011-01-19 21:22:31 EST
Verified.