This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 54926c324ff sanatise log in case multiple passwordsa have been passed 
(#8891)
54926c324ff is described below

commit 54926c324ff6a2626827836dcf46fd2eccbb87c3
Author: dahn <[email protected]>
AuthorDate: Mon Apr 29 09:37:36 2024 +0200

    sanatise log in case multiple passwordsa have been passed (#8891)
---
 server/src/main/java/com/cloud/api/ApiServer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/com/cloud/api/ApiServer.java 
b/server/src/main/java/com/cloud/api/ApiServer.java
index 420ee1abe44..fd57b43080a 100644
--- a/server/src/main/java/com/cloud/api/ApiServer.java
+++ b/server/src/main/java/com/cloud/api/ApiServer.java
@@ -490,7 +490,7 @@ public class ApiServer extends ManagerBase implements 
HttpRequestHandler, ApiSer
                     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." +
                             "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));
                     }
                 }
             }

Reply via email to