[ 
https://issues.apache.org/jira/browse/WINK-370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

kevin chen updated WINK-370:
----------------------------

    Affects Version/s: 1.3
    
> An error occurred when the post parameter contains "&" (using MultivaluedMap)
> -----------------------------------------------------------------------------
>
>                 Key: WINK-370
>                 URL: https://issues.apache.org/jira/browse/WINK-370
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 1.3
>         Environment: OS: linux
> Platform: karaf
>            Reporter: kevin chen
>             Fix For: 1.3
>
>
>   I use MultivaluedMap to post parameter which contains "&", such as "i&123". 
> But the parameter becomes "i" when it reach the server endpoint. I find the 
> code in wink-common: 
> String string = MultivaluedMapImpl.toString(t, "&"); //$NON-NLS-1$
> The method toString() links parameter with "&", but did not deal with the 
> case that the parameter contains "&" itself.
>   The client code show as follows:
> Resource resource = new RestClient().resource(url);
> MultivaluedMap<String, Object> params = new MultivaluedMapImpl<String, 
> Object>();
> params.add("parameter", "i&123");
> ClientResponse response = 
> resource.accept(MediaType.APPLICATION_JSON).post(params);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to