IDEA-57118 Subversion: store username and realm even if storing password is forbidden

This commit is contained in:
irengrig
2010-08-04 19:31:36 +04:00
parent d333d82e4f
commit 7857a33416
2 changed files with 6 additions and 4 deletions
@@ -456,20 +456,21 @@ public class SvnAuthenticationManager extends DefaultSVNAuthenticationManager im
myInteraction.warnOnAuthStorageDisabled(url);
return;
}
boolean passwordWillBeSaved = true;
final boolean passwordStorageEnabled = isStorePasswords(url);
// check can store
if ((! ISVNAuthenticationManager.SSL.equals(kind)) && (! passwordStorageEnabled)) {
// but it should be
myInteraction.warnOnPasswordStorageDisabled(url);
return;
passwordWillBeSaved = false;
}
if (ISVNAuthenticationManager.SSL.equals(kind) && (! isStoreSSLClientCertificatePassphrases(url))) {
myInteraction.warnOnSSLPassphraseStorageDisabled(url);
return;
passwordWillBeSaved = false;
}
// check can encrypt
if (!(SystemInfo.isWindows && SVNJNAUtil.isWinCryptEnabled())) {
if (passwordWillBeSaved && ( !(SystemInfo.isWindows && SVNJNAUtil.isWinCryptEnabled()))) {
try {
if (ISVNAuthenticationManager.SSL.equals(kind)) {
if (!isStorePlainTextPassphrases(realm, auth)) {
@@ -150,7 +150,8 @@ public class SvnVcs extends AbstractVcs<CommittedChangeList> {
private static RareLogger.LogFilter[] ourLogFilters;
static {
SVNJNAUtil.setJNAEnabled(true);
// todo rmeove
SVNJNAUtil.setJNAEnabled(false);
SvnHttpAuthMethodsDefaultChecker.check();
//noinspection UseOfArchaicSystemPropertyAccessors