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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.10
    • 2.0
    • Expression engine
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: