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

Avoid property binding via reflection in NettyConfiguration

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7.1
    • Fix Version/s: 3.7.2, 3.8.0
    • Component/s: camel-netty
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Not too sure about the logic in NettyConfiguration.parseURI but it invokes PropertyBindingSupport.bindProperties. Depending on the combination of URI options it can lead to some of the NettyConfiguration setters being invoked via reflection.

      E.g I was testing this URI in camel-quarkus. Both sync & allowDefaultCodec are being set through reflection.

      netty:udp://localhost:8081?sync=false&allowDefaultCodec=false

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              jamesnetherton James Netherton

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment