cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2560) WebClient doesns't read response body if status code means some error
Date Thu, 26 Nov 2009 16:30:39 GMT

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

Sergey Beryozkin commented on CXF-2560:
---------------------------------------

HI,

how do you use WebClient ?

If you do something like 

Response r = webClient.get();

then

r.getEntity() will point to the underlying connection's error input stream

but if you do 

Book b = webClient.get(Book.class);

then the only option for the runtime is to actually throw the WebApplicationException

can you give more details please ?




> WebClient doesns't read response body if status code means some error
> ---------------------------------------------------------------------
>
>                 Key: CXF-2560
>                 URL: https://issues.apache.org/jira/browse/CXF-2560
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.5
>            Reporter: Roman Kalukiewicz
>
> In {{org.apache.cxf.jaxrs.client.AbstractClient.readBody(Response, HttpURLConnection,
Message, Class<?>, Type, Annotation[])}} there is a conddition that causes {{WebClient}}
not to read the content of the response if status code describes some kind of error.
> I believe that if some response is sent by the server I should be able to read it even
if the status is for example 404.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message