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

[camel-netty-http] - Add additional logging around DecoderResult Failures

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.23.2, 3.0.0.RC3
    • 3.0.0
    • camel-netty-http
    • None
    • Unknown

    Description

      When the Camel Netty Http component receives a header that exceeds it's
      maxHeaderSize the
      org.apache.camel.component.netty.http.handlers.HttpServerChannelHandler
      simply logs that a message was received at DEBUG level:

       2019-11-19T19:34:02,418 | DEBUG | Camel (camel-2) thread #189 -
      NettyEventExecutorGroup | NettyHttpConsumer | 95 -
      org.apache.camel.camel-core - 2.22.3 | Message received:
      HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult:
      failure(io.netty.handler.codec.TooLongFrameException: HTTP header is
      larger than 8192 bytes.), version: HTTP/1.1, content: EmptyByteBufBE)

      This the request is allowed to proceed to code upstream which
      unfortunately leads the developer to believe that there is nothing wrong
      with the request.

      Determine to add error level logging in these cases.

      See for discussion: https://lists.apache.org/thread.html/1b991732c0e6f0420220a4329adb64438e7e17142d0799b90d15030a@%3Cdev.camel.apache.org%3E

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              bob Bob Paulin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m