camel-platform-http-starter: the Cookie request header is no longer echoed on the response - #1938
Merged
Croway merged 1 commit intoSep 2, 2026
Conversation
…choed on the response SpringBootPlatformHttpCookiesTest.echoCookie asserted that a lowercase "cookie" request header comes back on the response. PlatformHttpEndpoint wraps the header filter strategy so that common request headers such as Cookie are never echoed, and since CAMEL-24453 that comparison is case-insensitive, so the lowercase spelling is suppressed as well and the test has been failing against the current camel-platform-http snapshot. The test now asserts the suppression: the response carries no cookie header for the echo route. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Sep 2, 2026
davsclaus
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SpringBootPlatformHttpCookiesTest.echoCookieasserted that a lowercasecookierequest header is echoed back on the response of the/echoroute.PlatformHttpEndpointwraps the endpoint'sHeaderFilterStrategyso that common request headers,Cookieamong them, are never copied from the request to the response (CAMEL-20638). Until recently that lookup compared names exactly against the canonically capitalised set, so the lowercase spelling slipped through and the assertion held only because of that gap. Since CAMEL-24453 (apache/camel#25831) the comparison is case-insensitive, the lowercase header is suppressed as well, and the test has been failing against the currentcamel-platform-httpsnapshot on every platform-http PR (see #1932 and #1934).What changes
The test is renamed to
cookieRequestHeaderIsNotEchoedand now asserts the contract the endpoint enforces: the response carries nocookieheader. No main code changes.Tests
mvn test -pl components-starter/camel-platform-http-starter -Dtest=SpringBootPlatformHttpCookiesTest: 9 tests, 0 failures.Claude Code on behalf of Federico Mariani