Skip to content

Possible bug with spring cloud gateway #45386

Closed as not planned
Closed as not planned
@juacamilo99

Description

@juacamilo99

Description: Currently, I have a service using Spring Cloud Gateway and Spring Boot WebFlux. Its global error handler captures all failed requests (including body and headers) sent to the final API and uses that data to trigger another process within the service. Previously, the service ran on Spring Cloud Gateway 4.1.x, Spring Boot WebFlux 3.3.x, and Spring Context 6.1.19, and it worked fine: when a request to the final API failed, the global error handler would capture every modification applied by Spring Cloud Gateway (for example, headers added with the AddRequestHeader filter). Now, after updating to Spring Cloud Gateway 4.2.x and Spring Boot WebFlux 3.4.x, the global error handler isn’t capturing the modified request—it only sees the original request without the Gateway’s changes. Internally, we use a filter responsible for capturing the response using ServerWebExchange and WebFilterChain and throw and exception when the response code is related to an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions