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

Camel-Netty4 does not set remote UDP address in headers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.1
    • Fix Version/s: 2.14.3, 2.15.2, 2.16.0
    • Component/s: camel-netty4
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: