mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-57118 Subversion: store username and realm even if storing password is forbidden
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user