[Mono-bugs] [Bug 77872][Wis] Changed - HttpRequest.Url returns url
with path info appeared twice
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Mar 22 18:24:11 EST 2006
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 at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77872
--- shadow/77872 2006-03-22 05:38:39.000000000 -0500
+++ shadow/77872.tmp.14521 2006-03-22 18:24:11.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 77872
Product: Mono: Class Libraries
Version: 1.1
OS: Windows XP (Cygwin)
OS Details:
-Status: NEW
+Status: ASSIGNED
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: Sys.Web
AssignedTo: gonzalo at ximian.com
ReportedBy: vladimirk at mainsoft.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -36,6 +36,42 @@
Actual Results:
http://127.0.0.1:8080/appDir/page.aspx/foo/foo
Expected Results:
http://127.0.0.1:8080/appDir/page.aspx/foo
+
+------- Additional Comments From gonzalo at ximian.com 2006-03-22 18:24 -------
+------------
+using System;
+using System.Web;
+using System.Web.Hosting;
+
+class Test {
+ static void Main ()
+ {
+ SimpleWorkerRequest wr = new SimpleWorkerRequest
+("/appDir", "", "page.aspx/pathinfo", "", null);
+ HttpContext c = new HttpContext( wr );
+ string pathInfo = c.Request.PathInfo;
+ Console.WriteLine ("AbsoluteUri: {0}",
+c.Request.Url.AbsoluteUri);
+ Console.WriteLine ("FilePath: {0}", c.Request.FilePath);
+ Console.WriteLine ("Path: {0}", c.Request.Path);
+ Console.WriteLine ("Url: {0}", c.Request.Url);
+ }
+}
+----------
+
+For the above program, mono outputs:
+AbsoluteUri: http://127.0.0.1/appDir/page.aspx/pathinfo/pathinfo
+FilePath: /appDir/page.aspx/pathinfo
+Path: /appDir/page.aspx/pathinfo
+Url: http://127.0.0.1/appDir/page.aspx/pathinfo/pathinfo
+
+while MS does:
+AbsoluteUri: http://127.0.0.1/appDir/page.aspx/pathinfo/pathinfo
+FilePath: /appDir/page.aspx
+Path: /appDir/page.aspx/pathinfo
+Url: http://127.0.0.1/appDir/page.aspx/pathinfo
+
+So Url and FilePath are wrong.
More information about the mono-bugs
mailing list