Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.15.0, 2.15.1, 2.15.2
-
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.
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; } }