Skip to content

Regression in redirect URL encoding [SPR-7471] #12129

@spring-projects-issues

Description

@spring-projects-issues

Richard Larson opened SPR-7471 and commented

Using spring 3.0.4.BUILD-SNAPSHOT on August 18 2010, redirected views that include a question mark (and possibly other special characters) have the question mark url encoded which causes the url to no longer work. This bug was introduced probably as a result of the fix for #12085
https://jira.springframework.org/browse/SPR-7427

For example:
redirect:some/path/foo.html?id=1
would be incorrectly encoded as:
some/path/foo.html%3Fid=1

Possibly the encodeUrl method should know how to separately encode the path portion of the url separately from the parameters ?


Affects: 3.0.4

Issue Links:

Referenced from: commits 001d676

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