[ 
https://issues.apache.org/jira/browse/CAMEL-11221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15990630#comment-15990630
 ] 

Wayne Gilbert commented on CAMEL-11221:
---------------------------------------

Just to add more detail to this, basically when the URL is large, then it 
attempts to match the URL, it ends up matching on a URL of /bad-request vs the 
routes in the context, so never matches and returns a 404.

> camel-netty4-http cannot have a URL larger than 409 bytes by default, rather 
> than the assumed 4096 byte limit
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-11221
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11221
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-netty4-http
>    Affects Versions: 2.18.3
>            Reporter: Wayne Gilbert
>
> https://github.com/apache/camel/blob/camel-2.19.x/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/HttpServerSharedInitializerFactory.java
> In function "initChannel" the call to new request decoder
> pipeline.addLast("decoder", new HttpRequestDecoder(409, 
> configuration.getMaxHeaderSize(), 8192));
> 409, should probably be 4096,
> This only seems to occur when using matchOnUriPrefix=true in a netty4 
> endpoint.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to