Avoid pathVar-requestParam name collision

Closes gh-34499
This commit is contained in:
rstoyanchev
2025-02-26 19:03:12 +00:00
parent f92f9c1d5b
commit f62251aebd
3 changed files with 35 additions and 13 deletions

View File

@@ -493,7 +493,7 @@ public class HttpRequestValues {
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromUriString(uriTemplate);
for (Map.Entry<String, List<String>> entry : requestParams.entrySet()) {
String nameVar = entry.getKey().replace(":", "%3A"); // suppress treatment as regex
String nameVar = "queryParam-" + entry.getKey().replace(":", "%3A"); // suppress treatment as regex
uriVars.put(nameVar, entry.getKey());
for (int j = 0; j < entry.getValue().size(); j++) {
String valueVar = nameVar + "[" + j + "]";