Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2766

Calling update() on a newly created factory configuration causes FileNotFoundException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • configadmin-1.2.8
    • configadmin-1.4.0
    • 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

      Attachments

        1. felix-2766.diff
          0.9 kB
          Carl Franklin Hall

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: