[
https://issues.apache.org/jira/browse/WINK-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12890735#action_12890735
]
Bryant Luk commented on WINK-302:
---------------------------------
I think we should add a new method to handle these cases like:
{code}
RestClient.resource(String uri, boolean isEncoded)
{code}
This way it's very explicit if we're going to escape the URI string or not. My
concern would be double encoding strings.
> Wink client fails to escape especial characters like + or " " space in the
> url. This reuslts url exceptions
> -----------------------------------------------------------------------------------------------------------
>
> Key: WINK-302
> URL: https://issues.apache.org/jira/browse/WINK-302
> Project: Wink
> Issue Type: Improvement
> Components: Client
> Affects Versions: 1.0, 1.1, 1.1.1
> Environment: Websphere Applicaton Version 7.0.0.9, Wink 1.0 that
> comes with IBM Web2 feature pack
> Reporter: S. Farshi
>
> In my rest application the following works if I type it in the browser:
>
> http://localhost:9080/web/rest/vendor/IBM/family/BladeCenter/descriptor/system
> p+/os/AIX 6.1.1
> however; calling the same url through wink client would result in URL
> exception and that is because of " " [space] and + sign in the url. I had to
> write some code to escape these especial characters [space with %20 and +
> with %2B]. I believe Wink client should be smart enough to do similar tasks
> like these so that we developers focus on application logic as opposed to
> things like these that Wink framework should take care of.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.