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

ConfigInstaller, when using NotCachablePersistenceManager, can restore cached stale properties

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment