commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Lopashev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONFIGURATION-617) Incorrect multi-valued property substitution
Date Fri, 29 Jan 2016 01:54:40 GMT

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

Alex Lopashev commented on CONFIGURATION-617:
---------------------------------------------

Interpolation with list values imo is pretty rarely used functionality that's why there is
no complaints about it.
There is a solution for me - just set {{delimiterParsingDisabled}} flag.

Migration to 2.0 seems to be a pretty hard task (API differs I assume) and it's not event
released yet.

[~oliver.heger@t-online.de], thank you for your answer, I'm closing the issue.

> Incorrect multi-valued property substitution
> --------------------------------------------
>
>                 Key: CONFIGURATION-617
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-617
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.10
>            Reporter: Alex Lopashev
>
> According to [AbstractConfiguration#resolveContainerStore|http://grepcode.com/file/repo1.maven.org/maven2/commons-configuration/commons-configuration/1.10/org/apache/commons/configuration/AbstractConfiguration.java#AbstractConfiguration.resolveContainerStore%28java.lang.String%29]
code and documentation it uses only first value if array/collection property value. 
> Such behavior is broken in a trivial situation: 
> {{a=1,2,3}}
> {{b=$\{a\} ⇒ b=1}}
> The solution will be to stop using logic in {{resolveContainerStore(key)}} and just use
{{getProperty(key)}}.



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

Mime
View raw message