Skip to content

Excluded ForwardedHeaderTransformer from the function catalog by ty… - #1561

Open
ruthst00 wants to merge 1 commit into
spring-cloud:5.0.xfrom
ruthst00:fix/1560-auto-discovery
Open

ruthst00 wants to merge 1 commit into
spring-cloud:5.0.xfrom
ruthst00:fix/1560-auto-discovery

Conversation

@ruthst00

Copy link
Copy Markdown

Description

Fixes #1560

Root Cause

WebFlux’s ForwardedHeaderTransformer implements:

Function<ServerHttpRequest, ServerHttpRequest>

Spring Cloud Stream’s auto-discovery cannot distinguish it from an application messaging function. The natural fix location is Spring Cloud Function’s catalog candidate filtering, because it enumerates functional beans and selects the default. Its current 5.0.x implementation counts candidates before registration eligibility filtering.

The Fix

  • Excluded ForwardedHeaderTransformer from the function catalog by type, including renamed beans.
  • Applied exclusions before default-function candidate counting.
  • Prevented excluded lookups from falling back to another function.
  • Preserved auto-discovery defaults and HTTP forwarded-header processing.
  • Added ten regression tests covering discovery, exclusions, lazy initialization, and explicit selection.

…pe, including renamed beans.

- Applied exclusions before default-function candidate counting.
- Prevented excluded lookups from falling back to another function.
- Preserved auto-discovery defaults and HTTP forwarded-header processing.
- Added ten regression tests covering discovery, exclusions, lazy initialization, and explicit selection.
- Updated programming-model.adoc

Signed-off-by: ruthes00 <ruthes00@gmail.com>
@ruthst00
ruthst00 force-pushed the fix/1560-auto-discovery branch from 6bd8558 to 67e5813 Compare November 27, 2026 17:08

This branch has not been deployed

No deployments
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.

1 participant