-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2.1
-
None
-
%
-
-
-
6.3 Sprint 4 (Mar 28 - Apr 29)
camel-jetty (and, presumably Jetty itself) has a 6kB limit on HTTP form arguments. Such a limit is reasonable enough in a GET request, where the arguments are passed in the HTTP URI. But in a POST request, the arguments are passed in the request body which, in most circumstances, need not be subject to a length restriction. This means that a simple route such as the following fails (with an IndexOutOfBoundsException) when the request contains URL-encoded form data in a POST body of more than 6kB length, even though the route itself does nothing with the contents of the body.
<from uri="jetty:http://0.0.0.0:7071/bridgeWithJetty?matchOnUriPrefix=true" /> <to uri="jetty:http://localhost:7070/serviceX?bridgeEndpoint=true" />
Note that this problem does not arise when the "to" endpoint is http4: rather than jetty:, suggesting that this is a problem specific to camel-jetty, rather than a limitation of Camel itself.