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

Unintuitive default cxf timeout behavior

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.22.0
    • Component/s: camel-cxf, camel-cxfrs
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      There is very strange behavior in Camel cxf and cxfrs timeouts which could lead to sensitive data being released.

      Below is a code sample which illustrates the unexpected behavior. I think any developer would expect the test API to return "Valid Response" or some kind exception, but in fact it returns "SENSITIVE DATA" due to the default continuationTimeout of 30 seconds.

      This issue seems to have been introduced by https://issues.apache.org/jira/browse/CAMEL-7401

          public void configure() {
      
              from("cxf:///test?dataFormat=MESSAGE")
                  .setBody(constant("SENSITIVE DATA"))
                  .to("cxf://http://localhost:8003/slowApi?serviceClass=com.example.ExampleService&dataFormat=MESSAGE")
                  .transform(constant("Valid Response"));
      
              from("cxf:///slowApi?dataFormat=MESSAGE")
                  .process(new Processor(){
                      @Override
                      public void process(final Exchange exchange) throws Exception {
                          Thread.sleep(45000);
                      }
                  });
          }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ffang Freeman Yue Fang
                Reporter:
                adamcampbell Adam Campbell
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: