You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/08/23 11:35:59 UTC

DO NOT REPLY [Bug 30799] New: - Set wrong property when call org.apache.commons.configuration.XMLConfiguration.setProperty

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30799>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30799

Set wrong property when call org.apache.commons.configuration.XMLConfiguration.setProperty

           Summary: Set wrong property when call
                    org.apache.commons.configuration.XMLConfiguration.setPro
                    perty
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Configuration
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: njualert@yahoo.com.cn


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org