Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12428

Cannot use Camel exchange headers in Processor with cxf-rs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 2.21.0
    • 3.8.0
    • camel-cxfrs
    • None
    • Unknown

    Description

      If you do a simple route from a "cxfrs:" endpoint into a processor that does standard "camel" type things like:

      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);
      

      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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            dkulp Daniel Kulp
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: