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

Camel HTTP no longer supporting chunked transfer encoding with Tomcat

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.0, 2.15.1, 2.15.2
    • Fix Version/s: 2.15.3
    • Component/s: camel-http, camel-servlet
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When sending a chunked POST whilst running the servlet under Tomcat, camel now fails to read the input stream and sets the body to null.

      chunked-http-failure-test

      This is due to camel checking the stream for available bytes introduced in CAMEL-5806. For whatever reason the CoyoteInputStream is returning 0 available bytes when handling a chunked request.

          if (len < 0) {
              InputStream is = request.getInputStream();
              if (is.available() == 0) {
                  // no data so return null
                  return null;
              }
          }
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              ukcrpb6 Bob Browning
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: