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

[configuration] Set wrong property when call XMLConfiguration.setProperty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Nightly Builds
    • 1.0
    • None
    • None
    • Operating System: All
      Platform: All

    • 30799

    Description

      When I call org.apache.commons.configuration.XMLConfiguration.setProperty to
      set property, I find the relevant element in XML Document is set twice. For
      example, to call setProperty("name1", "value1") will obtain the node like
      <name1>value1value1</name1>
      the value "value1" appear twice.

      I find that when I call setProperty, addXMLProperty is called before
      setXMLProperty. When I comment "setXmlProperty(name, value);"(about line 347 in
      XMLConfiguration), the problem is disappeared.

      Attachments

        Activity

          People

            Unassigned Unassigned
            njualert Gao Peng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: