commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CONFIGURATION-567) XMLBeanDeclaration.getNestedBeanDeclarations() doesn't escape the node name when query the child node
Date Sun, 27 Apr 2014 17:36:14 GMT

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

Oliver Heger resolved CONFIGURATION-567.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

Fixed in SVN in revision 1590425. Thanks for the report and the proposed solution.

> XMLBeanDeclaration.getNestedBeanDeclarations() doesn't escape the node name when query
the child node
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-567
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-567
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Expression engine
>    Affects Versions: 1.10
>            Reporter: Shen liang
>             Fix For: 2.0
>
>
> When query the nested bean declaration, the child name may contain the special character.
So when call "HierarchicalConfiguration.configurationsAt()", the node name should be escaped
by the expression engine first as the following
> {code:java}
> getConfiguration().getExpressionEngine().nodeKey(node,"")
> {code}
> Call sequence to the problem code:
> {noformat}
> getNestedBeanDeclarations()
> ->nested.put(child.getName(), createBeanDeclaration(child));
>    ->List<HierarchicalConfiguration> list = getConfiguration().configurationsAt(node.getName());
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message