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

Interchanged use of HeaderFilterStrategy methods in camel-kafka

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.4.0
    • Component/s: camel-kafka
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: