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

cxfrs throwExceptionOnFailure option not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Later
    • 2.13.0, 2.13.1
    • None
    • camel-cxf
    • None
    • Unknown

    Description

      (1) The cxfrs option throwExceptionOnFailure=true does not suppress exceptions from being thrown when an invoked REST service returns a http status > 207. i.e. the following does not work:

      ...
      .to("cxfrs:bean:rsClient?throwExceptionOnFailure=false")
      ....

      (2) The cxfrs throwExceptionOnFailure option should default to false; to make it easier to process status codes in the route.

      When invoking REST services, the logic is currently complicated by the fact that common status' need to be processed in exception handlers. i,e (404 not found, 412 precondition failed). It would be more useful to filter on statuses with a main route.

      Attachments

        Activity

          People

            njiang Willem Jiang
            techbird Gareth Bird
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: