[Mono-bugs] [Bug 51495][Nor] New - XmlValidatingReader fails to validate XHTML document (because of URL resolving bug ?)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 29 Nov 2003 11:24:42 -0500 (EST)


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 gert.driesen@pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=51495

--- shadow/51495	2003-11-29 11:24:42.000000000 -0500
+++ shadow/51495.tmp.24494	2003-11-29 11:24:42.000000000 -0500
@@ -0,0 +1,68 @@
+Bug#: 51495
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: Gentoo 1.4 R8
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XmlValidatingReader fails to validate XHTML document (because of URL resolving bug ?)
+
+When attempting to validate an XHTML document (with a DTD) using
+XmlValidatingReader with Mono built from cvs, the following exception is
+thrown :
+
+System.Net.WebException: The remote server returned an error: (404) Not Found.
+in <0x003b0> System.Net.HttpWebRequest:CheckFinalStatus
+(System.Net.WebAsyncResult)
+in <0x00065> (wrapper remoting-invoke-with-check)
+System.Net.HttpWebRequest:CheckFinalStatus (System.Net.WebAsyncResult)
+in <0x001c3> System.Net.HttpWebRequest:EndGetResponse (System.IAsyncResult)
+in <0x00092> System.Net.HttpWebRequest:GetResponse ()
+in <0x00036> System.Net.WebClient:OpenRead (string)
+in <0x00058> (wrapper remoting-invoke-with-check)
+System.Net.WebClient:OpenRead (string)
+in <0x001bf> System.Xml.XmlUrlResolver:GetEntity
+(System.Uri,string,System.Type)in <0x00110>
+Mono.Xml.Native.XmlInputStream:.ctor
+(string,bool,System.Xml.XmlResolver,string)
+in <0x0008f> (wrapper remoting-invoke-with-check)
+Mono.Xml.Native.XmlInputStream:.ctor
+(string,bool,System.Xml.XmlResolver,string)
+in <0x00036> Mono.Xml.Native.XmlStreamReader:.ctor
+(string,bool,System.Xml.XmlResolver,string)
+in <0x0008f> (wrapper remoting-invoke-with-check)
+Mono.Xml.Native.XmlStreamReader:.ctor
+(string,bool,System.Xml.XmlResolver,string)
+in <0x00153> Mono.Xml.DTDParameterEntityDeclaration:Resolve
+(System.Xml.XmlResolver)
+in <0x001c7> System.Xml.DTDReader:ReadParameterEntityDecl ()
+in <0x00239> System.Xml.DTDReader:CompileDeclaration ()
+in <0x0029f> System.Xml.DTDReader:ProcessDTDSubset ()
+in <0x00182> System.Xml.DTDReader:ProcessDTDSubset ()
+in <0x0030d> System.Xml.DTDReader:GenerateDTDObjectModel ()
+in <0x001ec> System.Xml.XmlTextReader:GenerateDTDObjectModel
+(string,string,string,string,int,int)
+in <0x0033a> System.Xml.XmlTextReader:ReadDoctypeDecl ()
+in <0x000bf> System.Xml.XmlTextReader:ReadDeclaration ()
+in <0x0008e> System.Xml.XmlTextReader:ReadTag ()
+in <0x000e5> System.Xml.XmlTextReader:ReadContent ()
+in <0x001a0> System.Xml.XmlTextReader:Read ()
+in <0x00409> Mono.Xml.DTDValidatingReader:ReadContent ()
+in <0x017fc> Mono.Xml.DTDValidatingReader:ReadContent ()
+in <0x000b3> Mono.Xml.DTDValidatingReader:Read ()
+in <0x0025d> System.Xml.XmlValidatingReader:Read ()
+in <0x000c0> XHTMLValidate.XHtmlValidateTest:Main ()
+
+Note, this bug also exists in .NET 1.0 and 1.1, but is apparently fixed in
+.NET 1.2/2.0.
+
+I attached a repro for this issue.