[Mono-bugs] [Bug 380720] Wrong exception when removing and adding node with same id

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 25 12:09:44 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=380720

User twiest at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380720#c3


Thomas Wiest <twiest at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|RESOLVED                                        |VERIFIED




--- Comment #3 from Thomas Wiest <twiest at novell.com>  2008-07-25 10:09:44 MDT ---
On Mono 1.9.1, the test case produces this exception:
Unhandled Exception: System.Xml.XmlException: ID value xxx already exists in
this document.
  at System.Xml.XmlAttributeCollection.AdjustIdenticalAttributes
(System.Xml.XmlAttribute node, System.Xml.XmlNode existing) [0x00000] 
  at System.Xml.XmlAttributeCollection.SetNamedItem (System.Xml.XmlNode node)
[0x00000] 
  at System.Xml.XmlElement.SetAttribute (System.String name, System.String
value) [0x00000] 
  at Test.Main () [0x00000]



On Mono 2.0p1, the test case produces this exception:
Unhandled Exception: System.ArgumentException: The node to be removed is not a
child of this node.
  at System.Xml.XmlNode.ReplaceChild (System.Xml.XmlNode newChild,
System.Xml.XmlNode oldChild) [0x00000] 
  at Test.Main () [0x00000] 


I tested the testcase on MS .Net as well, and it produces the same exception as
Mono 2.0p1, therefore this bug is verified fixed in Mono 2.0p1 on SLED 10 sp2
i586.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list