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

Cannot use Camel exchange headers in Processor with cxf-rs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.21.0
    • Fix Version/s: 3.8.0
    • Component/s: camel-cxfrs
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: