This is not a valid Subversion Repository: svn: Received fatal alert: bad_record_mac svn: OPTIONS request failed on

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

These are the steps for reproducing the problem with Bamboo 3.4.2:

  1. Start Bamboo server;
  2. Log in as admin;
  3. Go to the Bamboo Administration page Server Capabilities. Click the link to automatically detect server capabilities;
  4. Go to Dashboard, click Create a Plan;
  5. Click create Import Maven2 project;
  6. Select Subversion;
  7. Entered url of a Maven project in SVN repository: https://svn.your/remote/SVN/repository;
  8. Enter username and password;
  9. Click import;
  10. Failure:
FINE: NETWORK: Received fatal alert: bad_record_mac
javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1720)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:632)
	at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
	at org.tmatesoft.svn.core.internal.util.SVNLogOutputStream.flush(SVNLogOutputStream.java:48)
	at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.sendData(HTTPConnection.java:229)
	at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:168)
	at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:362)

原因

Bamboo is failing because the SVN fails to authenticate via SSL.

ソリューション

IDEA sets "svnkit.http.sslProtocols=SSLv3" when JDK 1.6 or older is used. JDK 1.6 or older failes to work with SSLv3-only servers unless SSL socket is configured with SSLv3-only protocol.

SVNKit used by IDEA and 1.3.7 uses the same code base.

Try running Bamboo with the following option:

-Dsvnkit.http.sslProtocols=SSLv3

 

There is no need to set this property for all users, only for those who use JDK 1.6 and SSLv3-only servers. Setting this option will make connection fail on TLS-only servers (however, I suppose that majority of servers are configured both to support SSLv3 and TLSv1).

 

最終更新日 2016 年 11 月 29 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.