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

Variables are not preserved during write-back if they are defined as framework properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • fileinstall-3.2.2
    • utils-1.2.0, fileinstall-3.2.4
    • File Install
    • None
    • Karaf 2.2.5

    Description

      Fileinstall tries to only write back (to the configuration file) properties that have been changed. This fails if the value uses a property that is defined as a framework property (accessible via BundleContext.getProperty). In theory file install does support this but when handling configuration changes, the framework properties are not taken into account.

      E g this is the case when using Karaf and defining properties in config.properties.

      This has been discussed on Felix user mailing list, see:

      http://www.mail-archive.com/users@felix.apache.org/msg12281.html

      Attachments

        1. ConfigInstaller.patch
          0.8 kB
          Bengt Rodehav
        2. Properties.patch
          1 kB
          Bengt Rodehav

        Activity

          People

            gnodet Guillaume Nodet
            rodehav Bengt Rodehav
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: