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

ConfigInstaller, when using NotCachablePersistenceManager, can restore cached stale properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • fileinstall-3.6.8
    • File Install
    • None

    Description

      When using a NotCachablePersistenceManager the following steps occur when changing .config file values:

       

      1. ConfigInstaller.setConfig gets called.
      2. Configuration gets retrieved from ConfigInstaller.getConfiguration method
      3. getConfigurationAdmin().listConfigurations(filter) returns a new configuration each time because NotCacheablePersitenceManger is used.
      4. Changes are performed in the new Configuration.
      5. ConfigInstaller.doConfigurationEvent gets called back and retrieves configuration from configurationAdmin.
      6. ConfigurationAdmin.getConfiguration retrieves cached value (hasn't been updated in step 4 because a new differente configuration was returned)
      7. config file gets updated with cached values

      Attachments

        1. diffs.txt
          5 kB
          Mariano Alvaro

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            mariano.alvaro Mariano Alvaro
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: