Skip to content

Unable to retrieve FlashMap when contains "+"(half-space) in the request parameters [SPR-11821] #16441

Closed
@spring-projects-issues

Description

@spring-projects-issues

Kazuki Shimizu opened SPR-11821 and commented

Probably, URL decode processing are wrong in AbstractFlushMapManager#decodeParameters.

e.g.)
Controller's logic is follows :

redirectAttributes.addAttribute("ab", "a  b");
redirectAttributes.addAttribute("params[0]", "val0");
redirectAttributes.addAttribute("params[1]", "val1");

redirect url is follows:

/xxx?ab=a++b&params%5B0%5D=val0&params%5B1%5D=val1

FlashMap#getTargetRequestParams() is follows:

{ab=[a++b], params[0]=[val0], params[1]=[val1]}

I think value of "ab" parameter should be "a b".


Affects: 3.2.9

Reference URL: #16129

Issue Links:

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions