You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/12/21 09:53:00 UTC

[jira] [Resolved] (CAMEL-12428) Cannot use Camel exchange headers in Processor with cxf-rs

     [ https://issues.apache.org/jira/browse/CAMEL-12428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-12428.
---------------------------------
    Fix Version/s: 3.8.0
         Assignee: Claus Ibsen
       Resolution: Cannot Reproduce

Added unit test

> Cannot use Camel exchange headers in Processor with cxf-rs
> ----------------------------------------------------------
>
>                 Key: CAMEL-12428
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12428
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxfrs
>    Affects Versions: 2.21.0
>            Reporter: Daniel Kulp
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.8.0
>
>
> If you do a simple route from a "cxfrs:"  endpoint into a processor that does standard "camel" type things like:
> {code}
> exchange.getOut().setBody("Can't found the customer with uri " + path);
> exchange.getOut().setHeader(Exchange.CONTENT_TYPE, "text/plain");
> exchange.getOut().setHeader(Exchange.HTTP_RESPONSE_CODE, "404");
> exchange.getOut().setFault(true);
> {code}
> the setHeader values are ignored and not sent back to the client.    They always get response code 200.   If you use a javax.ws.rs.core.Response object, it works fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)