[
https://issues.apache.org/jira/browse/FELIX-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Felix Meschberger updated FELIX-2766:
-------------------------------------
Fix Version/s: (was: configadmin-1.2.10)
configadmin-1.4.0
> 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
> Assignee: Felix Meschberger
> Fix For: configadmin-1.4.0
>
> Attachments: felix-2766.diff
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira