diff --git a/plugins/org.jkiss.dbeaver.registry/src/org/jkiss/dbeaver/registry/DataSourceSerializerModern.java b/plugins/org.jkiss.dbeaver.registry/src/org/jkiss/dbeaver/registry/DataSourceSerializerModern.java index e38cd1f5472a0e47adea650911a0081a79407de6..8ab3a8366b1a9b16d88a4ce5c393d228ca6a3609 100644 --- a/plugins/org.jkiss.dbeaver.registry/src/org/jkiss/dbeaver/registry/DataSourceSerializerModern.java +++ b/plugins/org.jkiss.dbeaver.registry/src/org/jkiss/dbeaver/registry/DataSourceSerializerModern.java @@ -437,6 +437,14 @@ class DataSourceSerializerModern implements DataSourceSerializer config.setUserPassword(creds[1]); } } + { + // Still try to read credentials directly from configuration (#6564) + String userName = JSONUtils.getString(cfgObject, RegistryConstants.ATTR_USER); + if (!CommonUtils.isEmpty(userName)) config.setUserName(userName); + String userPassword = JSONUtils.getString(cfgObject, RegistryConstants.ATTR_PASSWORD); + if (!CommonUtils.isEmpty(userPassword)) config.setUserPassword(userPassword); + } + config.setClientHomeId(JSONUtils.getString(cfgObject, RegistryConstants.ATTR_HOME)); config.setConfigProfileName(JSONUtils.getString(cfgObject, "config-profile")); config.setUserProfileName(JSONUtils.getString(cfgObject, "user-profile")); @@ -588,6 +596,14 @@ class DataSourceSerializerModern implements DataSourceSerializer curNetworkHandler.setPassword(creds[1]); } } + { + // Still try to read credentials directly from configuration (#6564) + String userName = JSONUtils.getString(handlerCfg, RegistryConstants.ATTR_USER); + if (!CommonUtils.isEmpty(userName)) curNetworkHandler.setUserName(userName); + String userPassword = JSONUtils.getString(handlerCfg, RegistryConstants.ATTR_PASSWORD); + if (!CommonUtils.isEmpty(userPassword)) curNetworkHandler.setPassword(userPassword); + } + Map properties = JSONUtils.deserializeProperties(handlerCfg, RegistryConstants.TAG_PROPERTIES); if (properties != null) { curNetworkHandler.setProperties(properties);