mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-491) Encoded ampersands in URLs terminate parameters
Date Fri, 07 Dec 2007 15:31:43 GMT

    [ https://issues.apache.org/jira/browse/DIRMINA-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549441
] 

Trustin Lee commented on DIRMINA-491:
-------------------------------------

FYI, I used the following command:

wget --output-file=- "http://localhost:9012/snd?r=07390736D7774A7BDC71AB9CD68B163B&i=108&l=1&s=%7B%22msg_type%22%3A%22chat%22%2C%22content%22%3A%7B%22text%22%3A%22that's%20a%20beautiful%20B%26W%20Lara%22%2C%22sender_display_id%22%3A%22chat_175%22%7D%7D&u=1196959695588"

Calling request.getParameter("s") returned the correct value:

{"msg_type":"chat","content":{"text":"that's a beautiful B&W Lara","sender_display_id":"chat_175"}}

request.getRequestUri().toString() returned the following query string (exactly what you specified):

/snd?r=07390736D7774A7BDC71AB9CD68B163B&i=108&l=1&s=%7B%22msg_type%22%3A%22chat%22%2C%22content%22%3A%7B%22text%22%3A%22that's%20a%20beautiful%20B%26W%20Lara%22%2C%22sender_display_id%22%3A%22chat_175%22%7D%7D&u=1196959695588

> Encoded ampersands in URLs terminate parameters
> -----------------------------------------------
>
>                 Key: DIRMINA-491
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-491
>             Project: MINA
>          Issue Type: Bug
>          Components: Protocol - HTTP
>    Affects Versions: 2.0.0-M1
>         Environment: Linux
>            Reporter: Ben Marklein
>
> When the following URL is decoded by Asyncweb:
> /snd?r=07390736D7774A7BDC71AB9CD68B163B&i=108&l=1&s=%7B%22msg_type%22%3A%22chat%22%2C%22content%22%3A%7B%22text%22%3A%22that's%20a%20beautiful%20B%26W%20Lara%22%2C%22sender_display_id%22%3A%22chat_175%22%7D%7D&u=1196959695588
> the parameter s should decode to:
> {"msg_type":"chat","content":{"text":"that's a beautiful B&W Lara","sender_display_id":"chat_175"}}
> instead HttpRequest.getParameter("s") truncates before the ampersand:
> {"msg_type":"chat","content":{"text":"that's a beautiful B

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message