mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
sanatise log in case multiple passwordsa have been passed (#8891)
This commit is contained in:
parent
6e823b2cd3
commit
54926c324f
@ -490,7 +490,7 @@ public class ApiServer extends ManagerBase implements HttpRequestHandler, ApiSer
|
|||||||
if(parameterMap.putIfAbsent(param.getName(), new String[]{param.getValue()}) != null) {
|
if(parameterMap.putIfAbsent(param.getName(), new String[]{param.getValue()}) != null) {
|
||||||
String message = String.format("Query parameter '%s' has multiple values [%s, %s]. Only the last value will be respected." +
|
String message = String.format("Query parameter '%s' has multiple values [%s, %s]. Only the last value will be respected." +
|
||||||
"It is advised to pass only a single parameter", param.getName(), param.getValue(), parameterMap.get(param.getName()));
|
"It is advised to pass only a single parameter", param.getName(), param.getValue(), parameterMap.get(param.getName()));
|
||||||
logger.warn(message);
|
logger.warn(StringUtils.cleanString(message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user