[Mono-bugs] [Bug 509789] New: HttpRequest.QueryString is parsed incorrectly
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jun 4 00:37:19 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=509789
Summary: HttpRequest.QueryString is parsed incorrectly
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: Major
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: bassam at symform.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10)
Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
The following URL causes is parsed incorrectly by HttpRequest.QueryString:
http://dev/Session/New?ReturnPath=%2FFile%2Fabc%2F%3Fdef&ReturnQuery=block%3D23%26z%3Dg
After decoding the URL becomes:
http://dev/Session/New?ReturnPath=/File/abc/?def&ReturnQuery=block=23&z=g
The entries in the NameValueCollection are as follows:
0) ReturnPath = /File/abc/?def
1) ReturnQuery = block=23
2) z = g
instead of the expected
0) ReturnPath = /File/abc/?def
1) ReturnQuery = block=23&z=g
This works as expected on the .NET FX, and if I do the following:
NameValueCollection qs =
HttpUtility.ParseQueryString(Request.RawUrl.Substring(Request.RawUrl.IndexOf('?')));
On cursory inspection of the code it looks like the code is using Url.Query to
parse instead of worker_request.QueryString (which is parsed from the raw URL).
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list