Allow empty path in MockMvc #28823
Labels
in: test
Issues in the test module
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
In #24556 the use of a path without a leading slash was disallowed to avoid ambiguity between a path without a leading slash and a URL with a host but without a scheme. We could however allow an empty path which does not have the same issue.
This has come up after #28552, which turned off trailing slash support by default, and that in turn means that by default empty mappings only match to an empty input path.
The text was updated successfully, but these errors were encountered: