[Mono-bugs] [Bug 77872][Wis] New - HttpRequest.Url returns url with path info appeared twice

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Mar 22 05:38:40 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 vladimirk at mainsoft.com.

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

--- shadow/77872	2006-03-22 05:38:39.000000000 -0500
+++ shadow/77872.tmp.4950	2006-03-22 05:38:39.000000000 -0500
@@ -0,0 +1,41 @@
+Bug#: 77872
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Windows XP (Cygwin)
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: vladimirk at mainsoft.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: HttpRequest.Url returns url with path info appeared twice
+
+Description of Problem:
+
+In case of requesting web page with path info, for example:
+http://127.0.0.1:8080/appDir/page.aspx/foo,
+HttpRequest.Url will return path with double path info (/foo/foo), if 
+PathInfo property of HttpRequest was called earlier.
+
+Steps to reproduce the problem:
+public void Requesr_Url_PathInfo ()
+{
+  SimpleWorkerRequest wr = new SimpleWorkerRequest
+("/appDir", "", "page.aspx/pathinfo", "", null);
+
+  HttpContext c = new HttpContext( wr );
+  string pathInfo = c.Request.PathInfo;
+  Console.WriteLine (c.Request.Url.AbsoluteUri);
+}
+
+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


More information about the mono-bugs mailing list