Skip to content

Unable to retrieve FlashMap when target parameters are encoded [SPR-11504] #16129

Closed
@spring-projects-issues

Description

@spring-projects-issues

Yannick Lazzari opened SPR-11504 and commented

When the AbstractFlashMapManager decodes the target request parameters of a FlashMap before saving it, it only decodes the parameter values, not the parameter names. Parameter names are also part of the URL, just like values, so they might potentially also contain characters that were encoded, which is not that uncommon considering the binding path naming convention for array/map parameters that use the square brackets, e.g. '/some/url?params[0]=value1&params[1]=value2' which gets encoded to '/some/url?params%5B0%5D=value1&params%5B1%5D=value2'.

A similar issue had been raised in the past (#14291) but the fix then was to only decode the parameter values (see following commit: 364bb69).


Affects: 3.2.4

Issue Links:

Referenced from: commits spring-attic/spring-framework-issues@fed05a9

Backported to: 3.2.9

0 votes, 7 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions