commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shen liang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CONFIGURATION-567) XMLBeanDeclaration.getNestedBeanDeclarations() doesn't escape the node name when query the child node
Date Wed, 05 Feb 2014 15:54:09 GMT
Shen liang created CONFIGURATION-567:
----------------------------------------

             Summary: 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


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. 

{code:java}
getConfiguration().getExpressionEngine().nodeKey(node,node.getParentNode().getName())
{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.1.5#6160)

Mime
View raw message