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

camel-netty4-http cannot have a URL larger than 409 bytes by default, rather than the assumed 4096 byte limit

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Novice

      Description

      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 is set when using the init-method start on the bean below:

      <spring:bean id="httpServer" class="org.apache.camel.component.netty4.http.DefaultNettySharedHttpServer"
      init-method="start" destroy-method="stop">
      <spring:property name="nettyServerBootstrapConfiguration" ref="configuration"/>
      </spring:bean>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                onders Onder Sezgin
                Reporter:
                wayne.gilbert Wayne Gilbert
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: