From c34506b3bb6a0045542e9d830c731359f09e9b69 Mon Sep 17 00:00:00 2001 From: bhagyasakalanka <35135065+bhagyasakalanka@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:27:56 +0530 Subject: [PATCH] Revert "Revert "Fix: Unable to Update Google Connector after Configuring Outbound Provisioning for Google"" --- .../java/org/wso2/carbon/idp/mgt/dao/IdPManagementDAO.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementDAO.java b/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementDAO.java index e610e2b251e4..d79cc2a44259 100644 --- a/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementDAO.java +++ b/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementDAO.java @@ -2184,11 +2184,13 @@ public ProvisioningConnectorConfig[] getProvisioningConnectorConfigs(Connection String blobValue = getBlobValue(rs2.getBinaryStream("PROPERTY_BLOB_VALUE")); String propertyType = rs2.getString("PROPERTY_TYPE"); + if (propertyType != null) { + propertyType = propertyType.trim(); + } String isSecret = rs2.getString("IS_SECRET"); property.setName(name); - if (propertyType != null && IdentityApplicationConstants.ConfigElements. - PROPERTY_TYPE_BLOB.equals(propertyType.trim())) { + if (IdentityApplicationConstants.ConfigElements.PROPERTY_TYPE_BLOB.equals(propertyType)) { property.setValue(blobValue); } else { property.setValue(value);