[Mono-bugs] [Bug 56790][Nor] Changed - RewritePath returns 2 questionmarks when rewriting url's with querystrings

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 14 Apr 2004 06:00:48 -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=56790

--- shadow/56790	2004-04-14 01:30:14.000000000 -0400
+++ shadow/56790.tmp.9378	2004-04-14 06:00:48.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 56790
 Product: Mono: Class Libraries
 Version: unspecified
 OS: Red Hat 9.0
 OS Details: Mono 0.31 Apache 2.0.49
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Normal
 Component: Sys.Web
 AssignedTo: gonzalo@ximian.com                            
 ReportedBy: martijn@boland.org               
 QAContact: mono-bugs@ximian.com
@@ -40,6 +40,45 @@
 How often does this happen? 
 
 Always
 
 ------- Additional Comments From miguel@ximian.com  2004-04-14 01:30 -------
 Updating prio.
+
+------- Additional Comments From gonzalo@ximian.com  2004-04-14 06:00 -------
+This is my form.aspx page:
+---------
+<%@ language="C#" Inherits="Ns.Page" %>
+<html>
+<body>
+<form runat="server" id="frm">
+<asp:Label id="lbl" runat="server" />
+<asp:Button id="btn"
+     Text="Submit"
+     runat="server"/>
+</form>
+</html>
+---------
+
+And this is the codebehind file that i compile into a dll which is
+copied to bin directory:
+------
+
+namespace NS {
+	class Page : System.Web.UI.Page {
+		protected System.Web.UI.WebControls.Label lbl;
+
+		void Page_Load ()
+		{
+			lbl.Text = Request.RawUrl;
+			if (Request.RawUrl.IndexOf ("?") == -1) {
+				Context.RewritePath ("index.aspx?id=1");
+			}
+		}
+	}
+}
+------
+
+When i go to /form.aspx and click the button, it redirects me to
+/index.aspx?id=1 , which is the action in the form.
+
+I only see 1 question mark in there.