cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Traut (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-6977) content-type for JAXRS response not set correctly
Date Mon, 25 Jul 2016 09:59:20 GMT
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)

Mime
View raw message