[Mono-bugs] [Bug 61535][Wis] New - Response.Redirect rewriting fails

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 14 Jul 2004 10:10:16 -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 iain@mccoy.id.au.

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

--- shadow/61535	2004-07-14 10:10:16.000000000 -0400
+++ shadow/61535.tmp.3991	2004-07-14 10:10:16.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 61535
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: iain@mccoy.id.au               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Response.Redirect rewriting fails
+
+I've been working on porting dasblog's current version. I have what I hope
+is a fairly conventional, basic, minimal-surprises setup. I've got the
+.aspx files in $dir, the .dll files in $dir/bin, and I'm running xsp with
+no arguments in $dir.
+
+I changed Response.Redirect's implementation to read as follows:
+                public void Redirect (string url, bool endResponse)
+                {
+                        if (_bHeadersSent)
+                                throw new HttpException ("Headers has been
+sent to the client");
+
+                        Console.WriteLine("redirecting to {0}", url);
+                        Console.WriteLine("modifier is {0}", app_path_mod);
+                        Clear ();
+
+                        url = ApplyAppPathModifier (url);
+
+                        Console.WriteLine("url rewritten to {0}", url);
+
+I get this printed:
+redirecting to ~/FormatPage.aspx?path=SiteConfig/accessdenied.format.html
+modifier is
+url rewritten to //FormatPage.aspx?path=SiteConfig/accessdenied.format.html
+
+And firefox complains that the domain www.formatpage.aspx can't be found