Skip to content

ForwardedHeaderRequestWrapper should return a new StringBuffer instance on each invocation of the getRequestURL method [SPR-15423] #19984

@spring-projects-issues

Description

@spring-projects-issues

Bryan Kelly opened SPR-15423 and commented

ForwardedHeaderFilter returns the same StringBuffer for every invocation. This means that if the resulting StringBuffer is modified it changes the state of the HttpServletRequest.

Instead a new StringBuffer should be returned for every invocation.


Affects: 4.3.7, 5.0 M5

Referenced from: commits 9a91666, d0d7a88

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