Static resource support does not handle requests for a file with % character in its name #23463
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Affects: 5.2.0.RC1 (earlier versions may also be affected)
When a request is made for a static resource with a
%
in its file name,PathResourceResolver
attempts to decode the path to check for the presence of encoded../
or..\
. This fails when the path is, for example,test%file.txt
from a GET request for/test%25file.txt
. The failure is the following:The text was updated successfully, but these errors were encountered: