Skip to content

AsyncServerResponse interoperability issue with path variables #26239

@alexfeigin

Description

@alexfeigin

Affects: \5.3.2

There is an interoperability issue with the new AsyncServerResponse and routing functions. I tried to create a test in the webmvc project, but I'm afraid I don't know the framework well enough to reproduce it there.
Instead there is a reproduction using springboot, with all the latest greatest spring, and webmvc is managed to 5.3.2-snapshot.
spring-webmvc-interop-bug

when routing a request that has path variables, we get routed correctly, and get to a function that returns a ServerResponse.async response, but during the handling of the response, the routing function is called again, and we get an exception org.springframework.web.util.pattern.PatternParseException: Not allowed to capture 'pathVariable' twice in the same pattern

This does not happen if the response is a non async ServerResponse.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions