if throwable is of class CertificateRejected... , only log a message (in normal conditions, user already know he had rejected the certificate, or this is "passive" (silent) call)

IDEA-102664 Subversion: avoid error that appears on opening project associated with https repository
This commit is contained in:
irengrig
2013-03-09 11:43:26 +04:00
parent 65a5c494ed
commit dfbc1c8f72
@@ -87,6 +87,7 @@ import org.tmatesoft.svn.core.auth.ISVNAuthenticationManager;
import org.tmatesoft.svn.core.internal.io.dav.DAVRepositoryFactory;
import org.tmatesoft.svn.core.internal.io.fs.FSRepositoryFactory;
import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl;
import org.tmatesoft.svn.core.internal.util.SVNSSLUtil;
import org.tmatesoft.svn.core.internal.util.jna.SVNJNAUtil;
import org.tmatesoft.svn.core.internal.wc.SVNAdminUtil;
import org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea14;
@@ -959,6 +960,10 @@ public class SvnVcs extends AbstractVcs<CommittedChangeList> {
final long time = System.currentTimeMillis();
if ((time - myPreviousTime) > ourErrorNotificationInterval) {
myPreviousTime = time;
if (th.getCause() instanceof SVNSSLUtil.CertificateNotTrustedException) {
LOG.info(th);
return;
}
String info = SSLExceptionsHelper.getAddInfo();
info = info == null ? "" : " (" + info + ") ";
if (th.getCause() instanceof CertificateException) {