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

Camel-Netty4 does not set remote UDP address in headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.15.1
    • 2.14.3, 2.15.2, 2.16.0
    • camel-netty4
    • None
    • Unknown

    Description

      It appears that camel-netty4 does not set CamelNettyRemoteAddress in headers of an Exchange generated by an in-only UDP endpoint.

      It does set CamelNettyRemoteAddress in properties of the exchange.

      CamelNettyRemoteAddress in properties is set from AddressedEnvelope#sender(). CamelNettyRemoteAddress in headers is set from ChannelHandlerContext#channel().remoteAddress().

      It appears that the latter does not actually contain the remote address. Possible solutions are:
      1) Change NettyEndpoint to set CamelNettyRemoteAddress in headers from the AddressedEnvelope received
      2) Change NettyEndpoint to set CamelNettyRemoteAddress from properties (and to set properties of the Exchange first)

      Attachments

        Activity

          People

            njiang Willem Jiang
            tuure.laurinolli@portalify.com Tuure Laurinolli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: