[Mono-bugs] [Bug 47691][Nor] New - XPathDocument (and other classes?) have problems when a folder name containing the xmldocument src contains the # character.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 17 Aug 2003 16:04:18 -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 chris@turchin.net.

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

--- shadow/47691	2003-08-17 16:04:18.000000000 -0400
+++ shadow/47691.tmp.27041	2003-08-17 16:04:18.000000000 -0400
@@ -0,0 +1,85 @@
+Bug#: 47691
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: chris@turchin.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XPathDocument (and other classes?) have problems when a folder name containing the xmldocument src contains the # character.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem: XPathDocument (and others?) have problems when a
+folder name containing the xmldocument src contains the # character. 
+
+
+Steps to reproduce the problem:
+0. mkdir c#;cd c#
+1. wget http://turchin.net/transform.cs;wget
+http://turchin.net/transform.xml;wget http://turchin.net/transform.xsl
+2. mcs transform.cs
+3. mono transform.exe ./transform.xml ./transform.xsl
+
+
+Actual Results:
+Unhandled Exception: System.IO.FileNotFoundException: Could not find file
+"/home/chris/Documents/Projects/transform.xml"
+in <0x002fa> 00 System.IO.FileStream:.ctor
+(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
+in <0x00043> 00 System.IO.FileStream:.ctor
+(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
+in <0x000a3> 08 System.IO.FileStream:.ctor
+(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
+in <0x0008a> 00 System.Xml.XmlUrlResolver:GetEntity
+(System.Uri,string,System.Type)
+in <0x00110> 00 Mono.Xml.Native.XmlInputStream:.ctor
+(string,bool,System.Xml.XmlResolver,string)
+in <0x000a5> 08 Mono.Xml.Native.XmlInputStream:.ctor
+(string,bool,System.Xml.XmlResolver,string)
+in <0x00035> 00 Mono.Xml.Native.XmlStreamReader:.ctor
+(string,bool,System.Xml.XmlResolver,string)
+in <0x00018> 00 Mono.Xml.Native.XmlStreamReader:.ctor
+(string,System.Xml.XmlResolver,string)
+in <0x0008a> 08 Mono.Xml.Native.XmlStreamReader:.ctor
+(string,System.Xml.XmlResolver,string)
+in <0x0003a> 00 System.Xml.XmlTextReader:.ctor (string,System.Xml.XmlNameTable)
+in <0x0003b> 00 System.Xml.XmlTextReader:.ctor (string)
+in <0x0002a> 00 System.Xml.XPath.XPathDocument:.ctor (string)
+in <0x0003f> 00 .XmlTransformUtil:Transform (string,string,string)
+in <0x00089> 00 .XmlTransformUtil:Main (string[])
+ 
+
+
+Expected Results:
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Welcome to northeast region</title>
+</head>
+<body>
+<h1>Welcome to northeast region</h1>
+<h2></h2>
+<p></p>
+<b>Our contact details:</b><br><br>XYZ Inc.<br>One Abc Way<br>Some
+avenue<br>Tech city<br>Neverland<h2></h2>
+<p></p>
+<b>Our contact details:</b><br><br>abc Inc.<br>2 nnn Way<br>the
+avenue<br>xml city<br>de</body>
+</html>
+
+
+How often does this happen? reproducible. workaround:  directory name
+cannot contain # character: 
+1) cd ..;mv c# cs;cd cs;mono transform.exe ./transform.xml ./transform.xsl
+
+Additional Information: perhaps the problem is in libxml2 although it
+happens with 'export MONO_MANAGED_XSLT=true' as well so i guess not