[Mono-bugs] [Bug 55180][Nor] Changed - HttpRequest.MapPath() does not work correctly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 14 Jun 2004 00:59:39 -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 gonzalo@ximian.com.

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

--- shadow/55180	2004-06-05 03:14:59.000000000 -0400
+++ shadow/55180.tmp.25467	2004-06-14 00:59:39.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 55180
 Product: Mono: Class Libraries
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Normal
 Component: Sys.Web
 AssignedTo: gonzalo@ximian.com                            
 ReportedBy: giuseppe.greco@agamura.com               
 QAContact: mono-bugs@ximian.com
@@ -58,6 +58,21 @@
 The code fragment I sent you before contains
 a small error... Here below is the correct one:
  
    string dataDir = Server.MapPath(".."
      + Path.DirectorySeparatorChar
      + "app1" +Path.DirectorySeparatorChar + "data");
+
+------- Additional Comments From gonzalo@ximian.com  2004-06-14 00:59 -------
+Are you running xsp in /var/html? In that case, it works in CVS.
+
+If you run xsp having 2 applications /app1 and /app2, it works too.
+
+It doesn't work if you run xsp in /var/www/html/app2 as application /.
+Consider that a security feature as MS will throw if you try to
+MapPath above the root virtual directory.
+
+Btw, the expected result is:
+"/var/www/html/app1/data" (tested under MS with 2 different applications)
+
+If it fails for you on the first 2 cases, feel free to reopen the bug
+providing more data on how you run xsp