[Mono-bugs] [Bug 63828][Min] New - System.Web.UI.WebControls.Xml
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 24 Aug 2004 08:27: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 bugzilla@thetoxiczone.com.
http://bugzilla.ximian.com/show_bug.cgi?id=63828
--- shadow/63828 2004-08-24 08:27:24.000000000 -0400
+++ shadow/63828.tmp.23575 2004-08-24 08:27:24.000000000 -0400
@@ -0,0 +1,85 @@
+Bug#: 63828
+Product: Mono: Class Libraries
+Version: unspecified
+OS: SUSE 9.1
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bugzilla@thetoxiczone.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Web.UI.WebControls.Xml
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+xml transform control does not map virtual paths to system paths.
+
+Steps to reproduce the problem:
+1. Create a aspx page and add a xml transform control, set the
+DocumentSource to a valid virtual path xml file, and the same for the
+TransformSource with a vaild virtual path xslt file.
+2. View the Page
+
+Actual Results:
+Trace output due to invalid path exception
+
+Expected Results:
+The page with the transform results.
+
+How often does this happen?
+Every time I have run it.
+
+Additional Information:
+Work round put full system path to the file in the DocumentSource, note
+you don't need to do this for the TransformSource or you will get an
+invalid path trace report due to this.
+
+Possible Solution:
+Correct these methods as shown to map the path in the same way as private
+void LoadTransform () does.
+
+ private void LoadXmlDoc ()
+ {
+ if (documentContent != null &&
+documentContent.Length > 0) {
+ document = new XmlDocument ();
+ document.LoadXml (documentContent);
+ return;
+ }
+
+ if (documentSource != null &&
+documentSource.Length != 0) {
+ document = new XmlDocument ();
+ document.Load (MapPathSecure
+(documentSource));
+ }
+ }
+
+ private void LoadXpathDoc ()
+ {
+ if (documentContent != null &&
+documentContent.Length > 0) {
+ xpathDoc = new XPathDocument (new
+StringReader (documentContent));
+ return;
+ }
+
+ if (documentSource != null &&
+documentSource.Length != 0) {
+ xpathDoc = new XPathDocument
+(MapPathSecure (documentSource));
+ return;
+ }
+ }
+
+NB. I have not tested this code yet.
+
+P.S. Sorry if this is not enough details but I am never any good at this
+sort of thing.