[Mono-bugs] [Bug 52747][Nor] New - XmlUriResolver.GetEntity fails to open FileStream if URI canonical representation contains space char(s)
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 11 Jan 2004 05:39:54 -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 borisk@mainsoft.com.
http://bugzilla.ximian.com/show_bug.cgi?id=52747
--- shadow/52747 2004-01-11 05:39:54.000000000 -0500
+++ shadow/52747.tmp.15229 2004-01-11 05:39:54.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 52747
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System.XML
+AssignedTo: atsushi@ximian.com
+ReportedBy: borisk@mainsoft.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XmlUriResolver.GetEntity fails to open FileStream if URI canonical representation contains space char(s)
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+When trying to load XmlDocument from file that resides in directory with
+space char in name ('a a' for example) - XmlUriResolver .GetEntity fails
+to open FileStream because XmlUriResolver.UnescapeRelativeUriBody does not
+tajes care about space char escape encoding ['%20'].
+
+
+Steps to reproduce the problem:
+1.Create new XmlDocumnet object
+2.Call Load method with path to file that resides in directory with space
+in its name.
+
+Actual Results:
+System.IO.FileNotFoundException is thrown because it tries to create
+FileStream to path with escape character in it ('a%20a' instead 'a a' for
+example).
+
+
+Expected Results:
+Documnet is loaded without a problem.
+
+
+How often does this happen?
+Always.
+
+
+Additional Information: