Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestPredicate fails with WebFlux 6.1.2 #31955

Closed
kitkars opened this issue Jan 5, 2024 · 0 comments
Closed

RequestPredicate fails with WebFlux 6.1.2 #31955

kitkars opened this issue Jan 5, 2024 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: regression A bug that is also a regression
Milestone

Comments

@kitkars
Copy link

kitkars commented Jan 5, 2024

RequestPredicates is broken in Spring WebFlux.

@Bean
public RouterFunction<ServerResponse> myRouter() {
    return RouterFunctions.route()
                          .path("route", this::routerFunction)
                          .build();
}

private RouterFunction<ServerResponse> routerFunction() {
    return RouterFunctions.route()
                          .GET("path/{input}", RequestPredicates.path("*/1?")), this::myHandler)
                          .build();
}

Sending a request to route/path/15 fails with 404.

Same config works just fine with Spring Boot 3.2.0.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 5, 2024
@bclozel bclozel changed the title Regression - RequestPredicate Fails in Spring Boot 3.2.1 RequestPredicate Fails in Spring Boot 3.2.1 Jan 5, 2024
@bclozel bclozel changed the title RequestPredicate Fails in Spring Boot 3.2.1 RequestPredicate Fails with WebFlux 6.1.2 Jan 5, 2024
@bclozel bclozel added the in: web Issues in web modules (web, webmvc, webflux, websocket) label Jan 5, 2024
@poutsma poutsma self-assigned this Jan 8, 2024
@sbrannen sbrannen changed the title RequestPredicate Fails with WebFlux 6.1.2 RequestPredicate fails with WebFlux 6.1.2 Jan 30, 2024
@poutsma poutsma added type: bug A general bug type: regression A bug that is also a regression and removed status: waiting-for-triage An issue we've not yet triaged or decided on type: bug A general bug labels Feb 7, 2024
@poutsma poutsma added this to the 6.1.4 milestone Feb 7, 2024
@poutsma poutsma closed this as completed in af44b3e Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: regression A bug that is also a regression
Projects
None yet
Development

No branches or pull requests

4 participants