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

Interchanged use of HeaderFilterStrategy methods in camel-kafka

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.4.0
    • camel-kafka
    • None
    • Unknown

    Description

      While trying to create a custom HeaderFilterStrategy for camel-kafka I noticed that the two methods of the strategy are used interchanged.

      • The KafkaConsumer calls applyFilterToCamelHeaders
      • The KafkaProducer calls applyFilterToExternalHeaders

      According to the HeaderFilterStrategy Interface, it should be the other way round.

      I guess this bug is there since the beginning of the component (therefore affects all released versions).

      I have submitted the pull request 3864 to fix this.

      As easy as the code is to fix, this is sort of a breaking change for all existing (intentionally wrong) custom HeaderFilterStrategies for camel-kafka.

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              sburkard Stefan Burkard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: