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

[configuration] Set wrong property when call XMLConfiguration.setProperty

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: