Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Aug 18, 2010 · 1 comment
Closed

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

spring-projects-issues opened this issue Aug 18, 2010 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Aug 18, 2010

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

@spring-projects-issues
Copy link
Collaborator Author

Arjen Poutsma commented

Fixed. Thanks for spotting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants