[ 
https://issues.apache.org/jira/browse/CXF-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034319#comment-13034319
 ] 

Sergey Beryozkin commented on CXF-3518:
---------------------------------------

At the moment the fact that HttpURLConnection is directly dealt with is 
problematic. We will definitely refactor the client runtime, for the async 
conduit be supported better, for a local transport be supported, etc. That will 
have to become a priority soon enough, however we are more focused at the 
moment on wadl and security.

In meantime, I tend to update real system tests to test such cases, ex, please 
copy & paste one of BookStore methods in systest/jaxrs and then add a test 
invocation in JAXRSClientServerBookTest. That will work with Jetty. I believe 
one can do a similar test even in rt/frontend/jaxrs, but I'll need to review 
how it can be done

Cheers, Sergey 





> WebClient doesn't handle responses containing a quoted-string in a header 
> correctly
> -----------------------------------------------------------------------------------
>
>                 Key: CXF-3518
>                 URL: https://issues.apache.org/jira/browse/CXF-3518
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.4, 2.3.4
>         Environment: JDK 1.6
>            Reporter: Ka-Lok Fung
>            Priority: Minor
>             Fix For: 2.4.1, 2.3.5
>
>         Attachments: trunk.wc_quote_minimal.diff
>
>
> Similar to CXF-2462, if a request returns a response header that looks like 
> the following:
> bq. {{q: "stuff with commas, and spaces"}}
> WebClient's response.getMetadata() returns 2 values:
> {quote}
> # "stuff with commas
> # and spaces"
> {quote}
> while the correct response should be:
> {quote}
> # stuff with commas, and spaces
> {quote}
> Here's the WebClient code which reproduces the issue (as long as the server 
> response contains a header that returns the header value above):
> {code:Java}
> Response r = WebClient.create(new 
> URI("http://localhost:8080";)).path("key/quoted").get();
> List<Object> l = r.getMetadata().get("q");
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to