Calling update() on a newly created factory configuration causes
FileNotFoundException
--------------------------------------------------------------------------------------
Key: FELIX-2766
URL: https://issues.apache.org/jira/browse/FELIX-2766
Project: Felix
Issue Type: Bug
Affects Versions: configadmin-1.2.8
Reporter: Felix Meschberger
Fix For: configadmin-1.2.10
The following code throws java.io.FileNotFoundException
Configuration config = configurationAdmin.createFactoryConfiguration(name,
null);
config.update();
because the Configuration is newly created and has never been persisted, but
the update() method tries to read the persistence file.
According to a comment by Peter Kriens on the OSGi Dev List [1], the update()
method should in this case just assume an empty dictionary and push this past
the configuration plugins into the ManagedServiceFactory service.
[1] http://www.mail-archive.com/[email protected]/msg01773.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.