Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-567

XMLBeanDeclaration.getNestedBeanDeclarations() doesn't escape the node name when query the child node

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: 2.0
    • Component/s: Expression engine
    • Labels:
      None

      Description

      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

      getConfiguration().getExpressionEngine().nodeKey(node,"")
      

      Call sequence to the problem code:

      getNestedBeanDeclarations()
      ->nested.put(child.getName(), createBeanDeclaration(child));
         ->List<HierarchicalConfiguration> list = getConfiguration().configurationsAt(node.getName());
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dreamershl Shen liang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: