You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Ben Marklein (JIRA)" <ji...@apache.org> on 2007/12/07 08:43:43 UTC

[jira] Created: (DIRMINA-491) Encoded ampersands in URLs terminate parameters

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.


[jira] Commented: (DIRMINA-491) Encoded ampersands in URLs terminate parameters

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549438 ] 

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

I tried to reproduce this problem by using the lightweight HTTP server example in the sandbox and the http codec in the trunk, but I failed to reproduce your problem.  I get the correct parameter value from the query string you specified.  Are you using trunk, or something in the sandbox?  I hope you are not using older revision.

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


[jira] Commented: (DIRMINA-491) Encoded ampersands in URLs terminate parameters

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (DIRMINA-491) Encoded ampersands in URLs terminate parameters

Posted by "Ben Marklein (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549476 ] 

Ben Marklein commented on DIRMINA-491:
--------------------------------------

OK - I'll try out the trunk today and see if that makes a difference.


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


[jira] Closed: (DIRMINA-491) Encoded ampersands in URLs terminate parameters

Posted by "Ben Marklein (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Marklein closed DIRMINA-491.
--------------------------------

    Resolution: Fixed

We upgraded to the lastest and this is now working.  We were using a version that was about 3 weeks old, FYI...


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