[Mono-bugs] [Bug 73055][Nor] New - Request.FilePath not updated by RewritePath

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 26 Feb 2005 04:21:13 -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 j@bitron.ch.


--- shadow/73055	2005-02-26 04:21:13.000000000 -0500
+++ shadow/73055.tmp.12883	2005-02-26 04:21:13.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 73055
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: paldo 1.1
+Status: NEW   
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: j@bitron.ch               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Request.FilePath not updated by RewritePath
+Description of Problem:
+After calling HttpContext.RewritePath, the value of Request.FilePath
+remains unchanged.
+Steps to reproduce the problem:
+1. Add the following code snippet to a HttpModule BeginRequest event
+handler (or to a arbitrary other class which gets executed during the test
+HttpContext.Current.RewritePath ("test");
+if (!HttpContext.Current.Request.FilePath.EndsWith ("test"))
+	throw (new Exception ("Runtime bug."));
+2. Call the appropriate handler.
+3. Watch out for an exception.
+Actual Results:
+The "Runtime bug." exception gets thrown.
+Expected Results:
+No exception.
+How often does this happen? 
+Additional Information:
+Test fails with mono 1.1.4 but works fine with MS.NET runtime. This bug
+causes further problems as HttpApplication.CreateHandlerState.Execute uses
+the FilePath property to determine the correct Handler(Factory), so
+RewritePath from non-ashx extensions to ashx handlers won't work
+(StaticFileHandler delivers source of target ashx file).