Skip to content

RequestMapping maps double-slashes to single slashes [SPR-11220] #15845

@spring-projects-issues

Description

@spring-projects-issues

Jeff Conrad opened SPR-11220 and commented

I was attempting to resolve a URL coming in from googlebot which had double-slashes, "//".

It doesn't seem like @RequestMapping annotation is handling these explicitly as one would expect.

Attached is a test case @Controller, a running shell script, and the output. The output indicates that double-slash requests are also accepting single-slash inputs, force-removing the difference between double and single slash on the controller side.


Affects: 3.0.5

Attachments:

Issue Links:

1 votes, 4 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions