[Mono-bugs] [Bug 58076][Min] Changed - ReadInnerXml bombs on invalid XML
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 5 May 2004 14:55:20 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by atsushi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58076
--- shadow/58076 2004-05-05 12:32:25.000000000 -0400
+++ shadow/58076.tmp.26201 2004-05-05 14:55:20.000000000 -0400
@@ -1,15 +1,15 @@
Bug#: 58076
Product: Mono: Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
-Priority: Blocker
+Severity: Unknown
+Priority: Minor
Component: Sys.XML
AssignedTo: mono-bugs@ximian.com
ReportedBy: james@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
@@ -29,6 +29,25 @@
------- Additional Comments From james@ximian.com 2004-05-05 12:32 -------
Created an attachment (id=7602)
xml data for the test case
+
+------- Additional Comments From atsushi@ximian.com 2004-05-05 14:55 -------
+This is MS.NET 1.1 result.
+
+$ ./test
+
+Unhandled Exception: System.Xml.XmlException: The 'is' start tag on
+line '6' does not match the end tag of 'this'. Line 9, position 13.
+ at System.Xml.XmlTextReader.ParseTag()
+ at System.Xml.XmlTextReader.ParseBeginTagExpandCharEntities()
+ at System.Xml.XmlTextReader.Read()
+ at System.Xml.XmlReader.WriteNode(XmlTextWriter xtw, Boolean defattr)
+ at System.Xml.XmlReader.ReadInnerXml()
+ at XmlTextReaderTest.EntryPoint.ReadNamespaceSummaries(XmlReader
+reader)
+ at XmlTextReaderTest.EntryPoint.Main()
+
+Moreover, I cannot understand why such "no error" behavior is
+considered as correct. I think very opposite - it must be error.