[Mono-bugs] [Bug 80042][Min] New - Server.Execute and QueryString problem

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Nov 25 13:14:03 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=80042

--- shadow/80042	2006-11-25 13:14:03.000000000 -0500
+++ shadow/80042.tmp.17250	2006-11-25 13:14:03.000000000 -0500
@@ -0,0 +1,98 @@
+Bug#: 80042
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: gonzalo at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Server.Execute and QueryString problem
+
+There's a recent regression with server.Execute and query string...
+Steps to reproduce the problem:
+1. Default.aspx :
+<%@ Page Language="C#" Inherits="TestExecute.Default" %>
+
+Default.aspx.cs
+using System;
+using System.Web;
+using System.Web.UI;
+
+namespace TestExecute
+{
+	
+	public class Default : Page
+	{
+
+		protected override void OnInit(System.EventArgs e)
+		{
+			Server.Execute("./Other.aspx");
+                        Server.Execute("./Other.aspx");
+			Response.Write("<br>QueryString
+:"+Request.QueryString.ToString()+"<br>");
+			Response.Write("Url :"+Request.QueryString["url"]+"<br>");
+		}
+		}
+}
+
+Other.aspx:
+<%@ Page Language="C#" Inherits="TestExecute.Other" %>
+
+Other.aspx.cs : 
+using System;
+using System.Web;
+using System.Web.UI;
+
+namespace TestExecute
+{
+	
+	
+	public class Other : Page
+	{
+		
+		protected override void OnInit(System.EventArgs e)
+		{
+			Response.Write("QueryString (from
+execute):"+Request.QueryString.ToString()+"<br>");
+			Response.Write("Url (from execute)
+:"+Request.QueryString["url"]+"<br>");
+		}
+		
+
+	}
+}
+
+Run xsp and http://127.0.0.1:8080/?url=co
+
+Result
+
+QueryString (from execute):url=co
+Url (from execute) :co
+QueryString (from execute):?url=co
+Url (from execute) :
+
+QueryString :??url=co
+Url :
+
+Earch time a Server.Execute is called it add a "?" in the query string
+so the parameter are unreadable after a Server.Execute...
+
+How often does this happen? 
+Always
+
+Expected result
+QueryString (from execute):url=co
+Url (from execute) :co
+QueryString (from execute):url=co
+Url (from execute) :co
+
+QueryString :url=co
+Url :co


More information about the mono-bugs mailing list