[Mono-bugs] [Bug 44784][Cri] New - Bug in the XMLDocument class

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 14 Jun 2003 00:53:25 -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 giuseppe.greco@agamura.com.

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

--- shadow/44784	Sat Jun 14 00:53:25 2003
+++ shadow/44784.tmp.23691	Sat Jun 14 00:53:25 2003
@@ -0,0 +1,64 @@
+Bug#: 44784
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: giuseppe.greco@agamura.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Bug in the XMLDocument class
+
+The XMLDocument class does not handle full path correctly.
+
+
+Steps to reproduce the problem:
+
+1. Write a small program like this:
+
+   using System;
+   using System.Xml;
+                                                                          
+              
+   public class Test {
+     public static void Main() {
+       XmlDocument doc = new XmlDocument();
+       doc.Load("/home/genius/test/test.xml");
+       Console.WriteLine("baseuri: " + doc.BaseURI);
+     }
+   }
+
+   Of course, the path specified to the XmlDocument.Load
+   method has to be adjusted to your system.
+
+2. Write a small XML file named test.xml:
+
+   <?xml version="1.0"?>
+   <test>
+   </test>
+
+3. Compile and run it
+
+
+Actual Results:
+Console.WriteLine prints "file://home/home/genius/test/test.xml"
+instead of "file:///home/genius/test/test.xml".
+
+
+Expected Results:
+Console.WriteLine should print "file:///home/genius/test/test.xml".
+
+
+How often does this happen?
+Always.
+
+
+Additional Information:
+Due to this error I'm not able to compile NAnt on Linux anymore.