JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-4911

HttpRequestBodyToParamMap decodes a query string without specifying an encoding.

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.0.0-M4
  • Fix Version/s: 3.0.1
  • Component/s: Transport: HTTP(S) / Jetty
  • Labels:
    None
  • Environment:

    WindowsXP SP3, Sun JDK 1.6.0_14

  • User impact:
    Medium
  • Similar Issues:
    None

Description

Hi. I think that HttpRequestBodyToParamMap class has a problems.

HttpRequestBodyToParamMap uses URI#getQuery().

this method decodes the query string without specifying an encoding(probably decoded by the platform's default). and decoded query string is decoded once more by URLDecoder later.

This is a problem for non ascii query string, for example Windows-31J which is still used widely in Japan.

So instead of URI#getQuery(), use URI#getRawQuery() here. URL decoding is happily performed by URLDecoder later, and only once
Here is a patch for this problem and functional tests.

best regards.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    NEW-URIgetQuery.patch
    20/Jun/10 09:53 PM
    12 kB
    Kazuya Uno
  2. Text File
    URIgetQuery.patch
    18/Jun/10 12:58 AM
    9 kB
    Kazuya Uno

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds

People

  • Assignee:
    Dirk Olmes
    Reporter:
    Kazuya Uno
Vote (0)
Watch (1)

Dates

  • Created:
    18/Jun/10 12:56 AM
    Updated:
    06/Oct/10 04:45 AM
    Resolved:
    05/Oct/10 06:22 AM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.