diff --git a/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.common/src/main/java/org/wso2/carbon/identity/api/server/configs/common/ConfigsServiceHolder.java b/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.common/src/main/java/org/wso2/carbon/identity/api/server/configs/common/ConfigsServiceHolder.java index 8bec13a812..fc5f5f714f 100644 --- a/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.common/src/main/java/org/wso2/carbon/identity/api/server/configs/common/ConfigsServiceHolder.java +++ b/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.common/src/main/java/org/wso2/carbon/identity/api/server/configs/common/ConfigsServiceHolder.java @@ -116,6 +116,6 @@ public RemoteLoggingConfigService getRemoteLoggingConfigService() { */ public void setRemoteLoggingConfigService(RemoteLoggingConfigService remoteLoggingConfigService) { - ConfigsServiceHolder.getInstance().remoteLoggingConfigService = remoteLoggingConfigService; + this.remoteLoggingConfigService = remoteLoggingConfigService; } } diff --git a/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/java/org/wso2/carbon/identity/api/server/configs/v1/core/ServerConfigManagementService.java b/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/java/org/wso2/carbon/identity/api/server/configs/v1/core/ServerConfigManagementService.java index ae1e0066ed..685e583b88 100644 --- a/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/java/org/wso2/carbon/identity/api/server/configs/v1/core/ServerConfigManagementService.java +++ b/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/java/org/wso2/carbon/identity/api/server/configs/v1/core/ServerConfigManagementService.java @@ -88,6 +88,7 @@ import java.util.Collections; import java.util.HashSet; import java.util.List; +import java.util.Locale; import java.util.Map; import java.util.function.Function; import java.util.stream.Collectors; @@ -485,7 +486,7 @@ public void resetRemoteServerConfig(String logType) { RemoteServerLoggerData remoteServerLoggerData = new RemoteServerLoggerData(); - switch (logType.toUpperCase()) { + switch (logType.toUpperCase(Locale.ENGLISH)) { case Constants.AUDIT: remoteServerLoggerData.setAuditLogType(true); break; diff --git a/findbugs-exclude-filter.xml b/findbugs-exclude-filter.xml index 6cf6746037..3eadbe5996 100644 --- a/findbugs-exclude-filter.xml +++ b/findbugs-exclude-filter.xml @@ -121,4 +121,16 @@ + + + + + + + + + diff --git a/pom.xml b/pom.xml index a393d20a1e..e3ef55acbd 100644 --- a/pom.xml +++ b/pom.xml @@ -719,7 +719,7 @@ 4.9.10 0.7.12 2.4.21 - 4.10.5 + 4.10.6 5.2.15 1.0.4 1.2.4