[Mono-bugs] [Bug 507666] New: url-decode failed with encoded shift_jis query

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 27 22:25:05 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=507666


           Summary: url-decode failed with encoded shift_jis query
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: usagi at WonderRabbitProject.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Created an attachment (id=294849)
 --> (http://bugzilla.novell.com/attachment.cgi?id=294849)
It included the sample source codes, and screenshots.

Description of Problem:
The method "UrlDecode" and "ParseQueryString" of "System.Web.HttpUlitity" is
fail. It happened query contained url-encoded shift_jis string. Also, this
problems happened set 2nd-parameter(System.Text.Encoding) of the methods. But,
this problems avoidable using the method "UrlDecodeToBytes" and "Encoding".

It posted the forum:
    http://go-mono.com/forums/#nabble-to23743301|a23749796

Steps to reproduce the problem:
1. Access to ASP.NET page(.aspx) with url-encoded shift_jis query.
    for example: http://test-server/test.aspx?word=%8dg%92%83
2. "System.Web.UI.Page" object instance check the property of
"this.Request.QueryString" or try decode using the method "UrlDecode" and
"ParseQueryString" of "System.Web.HttpUlitity" manually.
3. It can get the fail url-decoded string.

(The attached archive file include the another reproduce method for console
application version, with this ASP.NET method version.)

Actual Results:
The part is normal. But url-decoded string has unkown error charactors.
(Please show screen shot in attached archive file.)

Expected Results:
All charactor is normal, complete. It has no error charactors.
(Please show screen shot in attached archive file.)

How often does this happen? 
Exactly.

Additional Information:
Please check the attached archive file. It included the sample source codes,
and screenshots.

-- 
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