Skip to content

Add advice on Spring MVC path matching for 5.3 and above to the reference documentation #26750

Closed
@ZH3FENG

Description

@ZH3FENG

I had noticed that in org.springframework.web.util.UrlPathHelper#decodeAndCleanUriString special url will be processed.
uri = removeSemicolonContent(uri); uri = decodeRequestString(request, uri); uri = getSanitizedPath(uri); return uri;

With this process, uri like /;/a/b/c will be changed to //a/b/c, and /;/a%2fb/c will be changed to //a/b/c.
This can be different in Filter(for example, jetty),which will confuse the developer. Sometime may cause security bug.

I'd like to ask, is the any specification like rfc, servlet specification, or anything else.
If any specification available, we can follow it .

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions