Url looks like: /getUserConnectionsList?login=**********&pagelimit=25&page=1&ot=asc&of=openDatetime§ion=userActivity
@PostMapping(path = "getUserConnectionsList", params = {"login"})
public String getUserConnectionsList(@RequestParam String login,
@RequestParam(required = false) String pagelimit,
@RequestParam(required = false) String page,
@RequestParam(required = false) String from,
@RequestParam(required = false) String to,
@RequestParam(required = false) String ot,
@RequestParam(required = false) String of) {
log.debug("test: {}, {}, {}, {}", login, page, ot, of);
And output looks like:
test: **********, 1, asc, openDatetime§ion=userActivity
It seems obvious that the following characters after openDatetime - "§", are interpreted as HTML ENTITY '§'. But I would like a know on how to solve this problem at the level of mapping, in order to avoid further situations when characters in a string are converted to a value I do not need.
*The error is reproducible on any http-client apps.
*Using the latest available version of springframework at the moment 2.6.2.
*Using header content-type: text/plain;charset=UTF-8