axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5489) Encoding GET parameters with '+' character in generated REST clients with WSDL2Java
Date Sat, 12 Oct 2013 11:25:42 GMT


Hudson commented on AXIS2-5489:

FAILURE: Integrated in Axis2 #2495 (See [])
fixing AXIS2-5489 by allowing +' charactor to be encoded when a request is sent with it. earlier
this was allowed to be preserved in the url so it was not encoded and when it reached the
server side, it was decoded as ' ' space charactor (kishanthan: rev 1531525)
* /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/

> Encoding GET parameters with '+' character in generated REST clients with WSDL2Java
> -----------------------------------------------------------------------------------
>                 Key: AXIS2-5489
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel, transports
>    Affects Versions: 1.6.2
>         Environment: Ubuntu
>            Reporter: Miguel Ángel Francisco Fernández
>            Assignee: Kishanthan Thangarajah
>            Priority: Blocker
>              Labels: +, GET, REST, encode,
>             Fix For: 1.7.0
>         Attachments: AXIS2-5489.patch, axis2-kernel-1.6.2.jar
>   Original Estimate: 2h
>  Remaining Estimate: 2h
> Using the wsdl2java tool to generate a Java client to access a REST web service described
with a WSDL 2.0, the generated client does not encode the symbol '+' in GET parameters.
> For example, if I have an URL "/get_url", and I set the parameter "param" to "x+x", the
symbol "+" is not encoded, and therefore it is interpreted as a space on the server ("x x").
If I try to send the parameter encoded, i.e., "%2B", then "%252B" is received in the server.
> Therefore, it is not possible to send the '+' symbol in a GET parameter.
> I guess that it is caused by the definition of the field LEGAL_CHARACTERS_IN_QUERY in
the interface org.apache.axis2.description.WSDL2Constants, which is set to "-._~!$'()*+,;=:@/?"

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message