You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Bengt Rodehav (JIRA)" <ji...@apache.org> on 2013/12/02 11:03:38 UTC

[jira] [Updated] (FELIX-4338) Incorrect overwriting of properties that have not been changed

     [ https://issues.apache.org/jira/browse/FELIX-4338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bengt Rodehav updated FELIX-4338:
---------------------------------

    Attachment: ConfigInstaller.java.patch

Changes the setConfig() method to parse the configuration file the same way that the method configurationEvent() does. This ensures that properties are always evaluated the same way.

The only drawback is that configuration files in XML format is not supported. On the other hand, they cannot have been supported before either since the setConfig() method didn't support them.

> Incorrect overwriting of properties that have not been changed
> --------------------------------------------------------------
>
>                 Key: FELIX-4338
>                 URL: https://issues.apache.org/jira/browse/FELIX-4338
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.2.6
>            Reporter: Bengt Rodehav
>         Attachments: ConfigInstaller.java.patch
>
>
> Fileinstall sometimes, incorrectly, believes that a property has been changed and thus overwrites it (if FileInstall is configured to write back configration changes) in the configuration file.
> This is because the configuration file is parsed differently on the original reading of the configuration file compared with the reading when a configuration has been updated.
> This has been described in more detail in the following conversation on the Felix user mailing list:
> http://www.mail-archive.com/users@felix.apache.org/msg14804.html



--
This message was sent by Atlassian JIRA
(v6.1#6144)