Skip to content

CAMEL-13249: invoke applyFilterToCamelHeaders instead of applyFilterToExternalHeaders - #2790

Closed
zregvart wants to merge 1 commit into
apache:camel-2.xfrom
zregvart:CAMEL-13249
Closed

CAMEL-13249: invoke applyFilterToCamelHeaders instead of applyFilterToExternalHeaders#2790
zregvart wants to merge 1 commit into
apache:camel-2.xfrom
zregvart:CAMEL-13249

Conversation

@zregvart

Copy link
Copy Markdown
Member

This changes the invocation in HttpRestHeaderFilterStrategy::applyFilterToCamelHeaders to delegate to super::applyFilterToCamelHeaders instead of super::applyFilterToExternalHeaders.

Also adds integration test demonstrating the issue and refactors HttpRestHeaderFilterStrategyTest from components/camel-http4 to /components/camel-http-common as it doesn't depend on http4 component and tests a class in camel-http-common.

@davsclaus @oscerd can you take a look, this seems right to me, but the use of applyFilterToExternalHeaders vs applyFilterToCamelHeaders seems intentional so I could be missing something.

If this change gets approved I'll backport it to 2.23.x and forward port it to master.

... instead of `applyFilterToExternalHeaders`

This changes the invocation in
`HttpRestHeaderFilterStrategy::applyFilterToCamelHeaders` to delegate to
`super::applyFilterToCamelHeaders` instead of
`super::applyFilterToExternalHeaders`.

Also adds integration test demonstrating the issue and refactors
`HttpRestHeaderFilterStrategyTest` from `components/camel-http4` to
`/components/camel-http-common` as it doesn't depend on `http4`
component and tests a class in `camel-http-common`.
@zregvart
zregvart requested review from davsclaus and oscerd February 22, 2019 17:07

@oscerd oscerd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, lets wait for @davsclaus because I'm in doubt if this is wanted or not

@davsclaus davsclaus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this smell like a mistake in the first place. Calling the correct super method is better.

@zregvart

Copy link
Copy Markdown
Member Author

Thanks @oscerd & @davsclaus I'll merge this in 2.x and supported 2.23.x and 3.x.

@zregvart zregvart closed this Feb 25, 2019
@zregvart
zregvart deleted the CAMEL-13249 branch February 25, 2019 15:54
Croway pushed a commit to Croway/camel that referenced this pull request Jun 3, 2025
…rtitions are assigned to preserve the paused state of the Consumer assignment (apache#17831) (apache#2790)

Co-authored-by: Pavel Bořík <32341334+pavel-borik@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants