You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carl Hall (JIRA)" <ji...@apache.org> on 2011/01/17 20:49:44 UTC
[jira] Commented: (FELIX-2766) Calling update() on a newly created
factory configuration causes FileNotFoundException
[ https://issues.apache.org/jira/browse/FELIX-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982828#action_12982828 ]
Carl Hall commented on FELIX-2766:
----------------------------------
I'm working on a patch for this that I should have available in the next couple of days.
> 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/osgi-dev@mail.osgi.org/msg01773.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.