Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 230B8200B61 for ; Mon, 25 Jul 2016 11:59:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2186D160A78; Mon, 25 Jul 2016 09:59:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6BD74160A7D for ; Mon, 25 Jul 2016 11:59:21 +0200 (CEST) Received: (qmail 74761 invoked by uid 500); 25 Jul 2016 09:59:20 -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 74741 invoked by uid 99); 25 Jul 2016 09:59:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2016 09:59:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 832DA2C0D5D for ; Mon, 25 Jul 2016 09:59:20 +0000 (UTC) Date: Mon, 25 Jul 2016 09:59:20 +0000 (UTC) From: "Michael Traut (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CXF-6977) content-type for JAXRS response not set correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 25 Jul 2016 09:59:22 -0000 Michael Traut created CXF-6977: ---------------------------------- Summary: content-type for JAXRS response not set correctly Key: CXF-6977 URL: https://issues.apache.org/jira/browse/CXF-6977 Project: CXF Issue Type: Bug Components: JAX-RS Affects Versions: 3.1.6 Reporter: Michael Traut Tried to get String contentType = (String) message.get(Message.CONTENT_TYPE); but is not set correctly. Seems that org.apache.cxf.jaxrs.JAXRSInvoker.setResponseContentTypeIfNeeded(Message, Object) checks for "instanceof Response" where "response" is already wrapped in MessageContentsList. Btw. headers are not copied at all? -- This message was sent by Atlassian JIRA (v6.3.4#6332)