Skip to content

URI override for @HttpExchange doesn't work if there are both URI and @PathVariable method parameters #29624

@ccwxl

Description

@ccwxl

Affects: 6.0.2


For code:

@HttpExchange(value = "uaa")
public interface UaaClient {

    @GetExchange("/passport/{identifier}")
    String passport(URI uri, @PathVariable("identifier") String identifier);

}

The requestValues.setUri method in UrlArgumentResolver will set the uriTemplate to null, causing the request to fail.

20221202232917

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