Closed
Description
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¶ms%5B0%5D=val0¶ms%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:
- Flash attributes not working with spaces in query parameters [SPR-12569] #17170 Flash attributes not working with spaces in query parameters ("duplicates")
- Unable to retrieve FlashMap when target parameters are encoded [SPR-11504] #16129 Unable to retrieve FlashMap when target parameters are encoded
- RestTemplate should encode the url variables [SPR-5516] #10187 RestTemplate should encode the url variables
- flash attributes not mapped from session to request scope when parameter value is url encoded [SPR-12986] #17577 flash attributes not mapped from session to request scope when parameter value is url encoded
- Better handling of URI encoding configuration [SPR-11925] #16543 Better handling of URI encoding configuration
0 votes, 5 watchers