You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (JIRA)" <ji...@apache.org> on 2016/01/28 15:29:39 UTC

[jira] [Resolved] (FC-141) Config from repository is adding instead of overriding

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

Shawn McKinney resolved FC-141.
-------------------------------
    Resolution: Fixed

changed to setProperty as recommended.

> Config from repository is adding instead of overriding
> ------------------------------------------------------
>
>                 Key: FC-141
>                 URL: https://issues.apache.org/jira/browse/FC-141
>             Project: FORTRESS
>          Issue Type: Bug
>    Affects Versions: 1.0.0-RC41
>            Reporter: Jan Sindberg
>            Priority: Trivial
>
> Config.java, line 118
> Remote properties are added instead of just set.
> The result is that if the values are first set from fortress.properties, then there now will be an array with to values for each property. This fails for instance when calling Config.getString( XXX );
> The line should be changed from 
> config.addProperty( key, val );
> to
> config.setProperty( key, val );



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)