[Mono-bugs] [Bug 44231][Nor] New - XmlTextReader.BaseURI returns wrong URI

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 6 Jun 2003 07:42:00 -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 gert.driesen@pandora.be.

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

--- shadow/44231	Fri Jun  6 07:42:00 2003
+++ shadow/44231.tmp.7980	Fri Jun  6 07:42:00 2003
@@ -0,0 +1,43 @@
+Bug#: 44231
+Product: Mono/Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Gentoo 1.4 RC4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XmlTextReader.BaseURI returns wrong URI
+
+When reading an xml document using XmlTextReader, and invalid Uri is 
+return from XmlTextReader.BaseURI regardless if a relative path or full 
+path to the xml file was specified.
+
+I have a small xml document called test.xml in 
+directory /home/gert/testxml and execute the attached testcase from that 
+directory.  The testcase will load the test.xml document using an 
+XmlTextReader by specifying a relative path (test.xml) and a full path 
+(/home/gert/testxml/test.xml).
+
+The BaseURI property of the XmlTextReader should in both cases return
+
+file://home/gert/testxml/test.xml
+
+however, when I load it using a relative path I get 
+
+file://home/gert/test.xml (notice that the testxml directory is no longer 
+in the uri)
+
+and when I load it using a full path I get 
+
+file://home/home/gert/testxml/test.xml (notice that home directory is 
+repeated in the uri)
+
+I've build Mono from cvs.