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

camel-http4 - Basic auth and redelivery issue with streaming message body

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.RC2, 3.0.0
    • Component/s: camel-http4
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      There is likely a issue if you use http4 producer with basic auth, then it may read the message body when sending to the http server, that then returns a basic auth challenge to the client, that then re-submit the request with credentials included, and then the message body is re-send but due to streaming the body is not re-readable and you can get OEF exception

      Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity.
      at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:226) ~[?:?]
      at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[?:?]
      at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[?:?]
      at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) ~[?:?]
      at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[?:?]
      ... 37 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zhfeng Zheng Feng
                Reporter:
                davsclaus Claus Ibsen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m