Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 36248 invoked from network); 26 Nov 2009 16:47:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Nov 2009 16:47:03 -0000 Received: (qmail 65289 invoked by uid 500); 26 Nov 2009 16:47:03 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 65246 invoked by uid 500); 26 Nov 2009 16:47:03 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 65234 invoked by uid 99); 26 Nov 2009 16:47:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2009 16:47:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2009 16:47:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8E55C234C04C for ; Thu, 26 Nov 2009 08:46:39 -0800 (PST) Message-ID: <1366954054.1259253999568.JavaMail.jira@brutus> Date: Thu, 26 Nov 2009 16:46:39 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2560) WebClient doesns't read response body if status code means some error In-Reply-To: <2004476056.1259249919577.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782934#action_12782934 ] Sergey Beryozkin commented on CXF-2560: --------------------------------------- ok... Will add another test... By the way, at the moment, if NOT_FOUND then a lot of extra logging is done at the client side's HttpConduit - will be fixed too. > 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.