Camel
  1. Camel
  2. CAMEL-3788

HTTP Producer seems to send an empty body request on redelivery when the original request fails due to a connection timeout

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-M2, 2.6.0
    • Fix Version/s: 2.7.3, 2.8.0
    • Component/s: camel-http
    • Labels:
      None

      Description

      Camel HTTP Producer is throwing an exception when it encounters a connection timeout. However instead of preserving the original message it is treating it processing the exception output. When connected to a redelivery meachanism, this results in an exception message being sent as input to the HTTP Consumer. The older versions of Camel behaved differently on read timeout. In Camel 1.x, in a read timeout, the Exception is thrown and the input message to the producer is passed through the pipeline. Now there is a difference: An exception is thrown and the output of the HTTP Producer is passed through the pipeline.

      Need to study why and what changed since Camel 1.x and ensure that the above does not happen.

      For more details, please check out the following nabble entry

      http://camel.465427.n5.nabble.com/Http-route-returning-with-200-but-also-getting-read-timed-out-td3741631.html#a3897410

      Cheers,

      Ashwin...

        Activity

        Daniel Kulp made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Daniel Kulp made changes -
        Fix Version/s 2.7.3 [ 12316520 ]
        Daniel Kulp committed 1143992 (3 files)
        Reviews: none

        Merged revisions 1083723-1083724 via svnmerge from
        https://svn.apache.org/repos/asf/camel/trunk

        ........
          r1083723 | ningjiang | 2011-03-21 06:12:19 -0400 (Mon, 21 Mar 2011) | 1 line
          
          CAMEL-3788 HTTP Producer should not return a out message with null when the timeout exception is thrown.
        ........
          r1083724 | ningjiang | 2011-03-21 06:13:00 -0400 (Mon, 21 Mar 2011) | 1 line
          
          CAMEL-3788 Merged the patch into camel-http4
        ........

        J. Daniel Kulp <dkulp@apache.org> committed 65772d77d7f6ae4174b8a2117bb5344dd9eef724 (2 files)
        Reviews: none

        Merged revisions 1083723-1083724 via svnmerge from https://svn.apache.org/repos/asf/camel/trunk
        ........
          r1083723 | ningjiang | 2011-03-21 06:12:19 -0400 (Mon, 21 Mar 2011) | 1 line
          
          CAMEL-3788 HTTP Producer should not return a out message with null when the timeout exception is thrown.
        ........
          r1083724 | ningjiang | 2011-03-21 06:13:00 -0400 (Mon, 21 Mar 2011) | 1 line
          
          CAMEL-3788 Merged the patch into camel-http4
        ........


        git-svn-id: https://svn.apache.org/repos/asf/camel/branches/camel-2.7.x@1143992 13f79535-47bb-0310-9956-ffa450edef68

        Willem Jiang made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Willem Jiang [ njiang ]
        Fix Version/s 2.8.0 [ 12316226 ]
        Resolution Fixed [ 1 ]
        Hide
        Willem Jiang added a comment -

        Committed the patch into camel-http and camel-http4.

        Show
        Willem Jiang added a comment - Committed the patch into camel-http and camel-http4.
        ningjiang committed 1083724 (1 file)
        Willem Ning Jiang <ningjiang@apache.org> committed 058d4d4b5ffe40b8e93c7593f0b5346373455480 (1 file)
        ningjiang committed 1083723 (1 file)
        Reviews: none

        CAMEL-3788 HTTP Producer should not return a out message with null when the timeout exception is thrown.

        Willem Ning Jiang <ningjiang@apache.org> committed e02071e25ae989163320a638356bcc155950ef28 (1 file)
        Reviews: none

        CAMEL-3788 HTTP Producer should not return a out message with null when the timeout exception is thrown.
        git-svn-id: https://svn.apache.org/repos/asf/camel/trunk@1083723 13f79535-47bb-0310-9956-ffa450edef68

        Ashwin Karpe created issue -

          People

          • Assignee:
            Willem Jiang
            Reporter:
            Ashwin Karpe
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development