CB-4511 clear secure props if save password is disabled (#2835)

Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
Ainur
2024-08-12 11:14:27 +00:00
committed by GitHub
co-authored by Evgenia Bezborodova
parent d118287b0e
commit de00a60aad
@@ -97,6 +97,10 @@ public class WebDataSourceUtils {
private static void setSecureProperties(DBWHandlerConfiguration handlerConfig, WebNetworkHandlerConfigInput cfgInput, boolean ignoreNulls) {
var secureProperties = cfgInput.getSecureProperties();
if (secureProperties == null) {
if (!handlerConfig.isSavePassword()) {
// clear all secure properties from handler config
handlerConfig.setSecureProperties(Map.of());
}
return;
}
for (var pr : secureProperties.entrySet()) {