Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6080

Duplicate configuration randomly created on the first start in ConfigurationAdmin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.2
    • 4.1.8, 4.2.3
    • karaf
    • None
    • Karaf 4.1.2, Karaf 4.2.2

      Windows 7, Equinox

    Description

      On the first start, if a boot feature contains a <config/> element, and the associated .cfg file exists in the etc folder, then this Configuration can be created twice in ConfigurationAdmin :

      1. File Install check the etc folder and create for every cfg a Configuration in ConfigurationAdmin
      2. the FeatureService (FeatureConfigInstaller), when a feature is installed and has a configuration, check if this configuration exists in ConfigurationAdmin. If the configuration doesn't exists, then it creates a new one

      If 1 and 2 are executed simultaneously, then the same configuration is created twice in ConfigurationAdmin. If this configuration is linked to a managed service, then this service will be instanciated twice.

      By default, the karaf-maven-plugin copies every cfg to the etc folder, this issue can probably be triggered by any <config/> element on a boot feature.

      Attachments

        1. karaf-6080.patch
          3 kB
          J. Brébec

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              j3rem1e J. Brébec
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: