Skip to content

camel-platform-http-starter: the Cookie request header is no longer echoed on the response - #1938

Merged
Croway merged 1 commit into
apache:mainfrom
Croway:camel-platform-http-starter-cookie-echo-test
Sep 2, 2026
Merged

camel-platform-http-starter: the Cookie request header is no longer echoed on the response#1938
Croway merged 1 commit into
apache:mainfrom
Croway:camel-platform-http-starter-cookie-echo-test

Conversation

@Croway

@Croway Croway commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

SpringBootPlatformHttpCookiesTest.echoCookie asserted that a lowercase cookie request header is echoed back on the response of the /echo route.

PlatformHttpEndpoint wraps the endpoint's HeaderFilterStrategy so that common request headers, Cookie among 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 current camel-platform-http snapshot on every platform-http PR (see #1932 and #1934).

What changes

The test is renamed to cookieRequestHeaderIsNotEchoed and now asserts the contract the endpoint enforces: the response carries no cookie header. 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

…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>
@Croway
Croway merged commit 12cd328 into apache:main Sep 2, 2026
5 checks passed
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.

2 participants