[Mono-bugs] [Bug 81383][Nor] New - XmlValidatingReader does not honour MONO_IOMAP
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Apr 16 02:10:07 EDT 2007
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 lchin at erggroup.com.
http://bugzilla.ximian.com/show_bug.cgi?id=81383
--- shadow/81383 2007-04-16 02:10:07.000000000 -0400
+++ shadow/81383.tmp.17225 2007-04-16 02:10:07.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 81383
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com
+ReportedBy: lchin at erggroup.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XmlValidatingReader does not honour MONO_IOMAP
+
+Description of Problem:
+
+When validating an XML file against a given DTD file, XmlValidatingReader
+will attempt to open the DTD file. This file open should be affected by the
+value of MONO_IOMAP, but it isn't. Mono always tries to open the DTD file
+case-sensitively.
+
+Steps to reproduce the problem:
+1. XML FILE:
+
+<!DOCTYPE testfile SYSTEM "testdtd.dtd">
+
+2. On the system, have a dtd file named TESTDTD.dtd
+
+3. C# Validator:
+
+try {
+ XmlTextReader xmltr = new XmlTextReader("xmltest.xml");
+ XmlValidatingReader xmlvr = new XmlValidatingReader(xmltr);
+ xmlvr.ValidationType = ValidationType.DTD;
+ // parse all nodes
+ while (xmlvr.Read());
+} catch (XmlSchemaException ex) {
+ Console.WriteLine("Error: {0}", ex.Message);
+}
+// no exceptions, so must be valid
+Console.WriteLine("Validated file");
+
+Actual Results:
+
+"XmlSchema error: Specified external entity not found. Target URL is
+testdtd.dtd"
+
+Expected Results:
+
+"Validated file"
+
+How often does this happen?
+100%
+
+Additional Information:
+Possibly related to Bug#81382?
More information about the mono-bugs
mailing list