Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
configadmin-1.2.8
-
None
-
None
Description
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