directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Sindberg (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FC-141) Config from repository is adding instead of overriding
Date Wed, 27 Jan 2016 10:23:40 GMT

    [ https://issues.apache.org/jira/browse/FC-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15118987#comment-15118987
] 

Jan Sindberg edited comment on FC-141 at 1/27/16 10:23 AM:
-----------------------------------------------------------

subsequent calls to Config.getProperty( ... ) fails since array cannot be cast to String.


was (Author: jan.sindberg@gmail.com):
subsequently calls to Config.getProperty( ... ) fails since array cannot be cast to String.

> 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)

Mime
View raw message