Skip to content

ForwardedHeaderFilter.ForwardedHeaderRequestWrapper does not preserve encoding of requestURI [SPR-15422] #19983

@spring-projects-issues

Description

@spring-projects-issues

Bryan Kelly opened SPR-15422 and commented

After adding the ForwardedHeaderFilter to our application we noticed that requests that are wrapped by the ForwardedHeaderRequestWrapper will no longer preserve encoding of the request.getRequestUri() and request.getRequestURL(). This is problematic when injecting a UriComponentsBuilder instance into a controller method because it will throw an Illegal character in path at index if the path contains characters that are expected to be encoded.


Affects: 4.3.7, 5.0 M5

Issue Links:

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