[Mono-bugs] [Bug 55180][Cri] New - HttpRequest.MapPath() does not work correctly
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 4 Mar 2004 16:17:03 -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 giuseppe.greco@agamura.com.
http://bugzilla.ximian.com/show_bug.cgi?id=55180
--- shadow/55180 2004-03-04 16:17:03.000000000 -0500
+++ shadow/55180.tmp.30248 2004-03-04 16:17:03.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 55180
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Fedora 1.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Critical
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: giuseppe.greco@agamura.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: HttpRequest.MapPath() does not work correctly
+
+Giving the following filesystem structure...
+
+/var
+ + /html
+ + app1
+ | + myForm1.aspx
+ | + data
+ | + file1.xml
+ | + file2.xml
+ + app2
+ + myForm2.aspx
+
+... "/var/html/app2/myForm2.aspx" is not able to access
+the "data" directory in "/var/html/app1".
+
+Steps to reproduce the problem:
+1. Create a filesystem structure like the one described
+ above
+
+2. In "/var/www/html/app2/myForm2.aspx" add the following
+ code snippet:
+
+ string dataDir = Server.MapPath(".."
+ + Path.DirectorySeparatorChar
+ + "pms" +Path.DirectorySeparatorChar + "data");
+
+
+Actual Results:
+HttpRequest.MapPath() returns "/var/www/html/app2/app1/data".
+
+Expected Results:
+HttpRequest.MapPath() should return "/var/www/html/app2/../app1/data".
+
+How often does this happen?
+Always.
+
+Additional Information:
+This works on M$ Windows.