From a0363a64d19cae66e2e5d8c7ba100bd0c2bcc3f2 Mon Sep 17 00:00:00 2001 From: sandushi Date: Fri, 29 Mar 2024 13:35:10 +0530 Subject: [PATCH] Masking data from the error log --- .../carbon/identity/scim2/common/impl/SCIMUserManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java index 68a032ba..45538218 100644 --- a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java +++ b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java @@ -1493,7 +1493,8 @@ private String resolveDomainName(String domainName, ExpressionNode node) throws } catch (BadRequestException e) { String errorMessage = String .format("Domain parameter: %s in request does not match with the domain name in the attribute " - + "value: %s ", domainName, node.getValue()); + + "value: %s ", domainName, (LoggerUtils.isLogMaskingEnable ? + LoggerUtils.getMaskedContent(node.getValue()) : node.getValue())); throw new CharonException(errorMessage, e); } // Get domain name according to Filter Enhancements properties as in identity.xml