diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/providers/EditProviderModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/providers/EditProviderModel.java index e956fd36487..0e079d73b80 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/providers/EditProviderModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/providers/EditProviderModel.java @@ -47,7 +47,7 @@ public EditProviderModel(SearchableListModel sourceListModel, Provider provider) getUrl().setEntity(provider.getUrl()); getRequiresAuthentication().setEntity(provider.isRequiringAuthentication()); getUsername().setEntity(provider.getUsername()); - getPassword().setEntity(provider.getPassword()); + getPassword().setEntity("********"); //$NON-NLS-1$ if (provider.isRequiringAuthentication() && provider.getType().isAuthUrlAware()) { Uri uri = new Uri(provider.getAuthUrl()); if (uri.isValid()) { diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/providers/ProviderModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/providers/ProviderModel.java index 206c5a907ee..75fc2060dfa 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/providers/ProviderModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/providers/ProviderModel.java @@ -648,7 +648,9 @@ private void flush() { provider.setRequiringAuthentication(authenticationRequired); if (authenticationRequired) { provider.setUsername(getUsername().getEntity()); + if(!getPassword().getEntity().equals("********")) { //$NON-NLS-1$ provider.setPassword(getPassword().getEntity()); + } if (getTenantName().getIsAvailable()) { OpenStackProviderProperties properties = getOpenStackProviderProperties(); properties.setTenantName(getTenantName().getEntity());