[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


           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:
Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)

The following URL causes is parsed incorrectly by HttpRequest.QueryString:


After decoding the URL becomes:


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 =

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:

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