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

Camel HTTP no longer supporting chunked transfer encoding with Tomcat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.15.0, 2.15.1, 2.15.2
    • 2.15.3
    • camel-http, camel-servlet
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: