Guest?
 
  • Showing issue #? of ? found
Back to Search
Project
SVNKit
Priority
Show-stopper
Type
Exception
State
Open
Assignee
Alexander Kitaev
Subsystem
Working Copy
Affected versions
1.7.0-alpha, 1.7.0, future
Fix versions
1.7.0-alpha, 1.7.0
Fixed in build
No Fixed in build
  • Created by   Dmytro Kryvenko
    16 months ago (17 Jan 2012 16:10)
  • Updated by   Alexander Kitaev
    3 months ago (22 Feb 2013 15:33)
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Hello. My company using for svn server protocol https only with support SSLv3. I catch this exception:

Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: Received fatal alert: bad_record_mac
svn: E175002: OPTIONS request failed on '/some/path'
 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106)
 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106)
 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:644)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:280)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:268)
 at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:536)
 at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
 at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1009)
 at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.logImpl(DAVRepository.java:953)
 at org.tmatesoft.svn.core.io.SVNRepository.log(SVNRepository.java:1036)
 at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:181)
 at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:35)
 at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:20)
 at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:581)
 at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:160)
 at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:790)
 at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:554)
 at com.hp.svnreporter.controller.SVNWorker.getChanges(SVNWorker.java:111)

Code:

FSRepositoryFactory.setup();
DAVRepositoryFactory.setup();
SVNRepositoryFactoryImpl.setup();
SVNClientManager client = SVNClientManager.newInstance();
SVNLogClient log = client.getLogClient();
log.doLog(new File[] { new File("/path/to/folder/") },
                    SVNRevision.create(revisionNumber1),
                    SVNRevision.create(revisionNumber2),
                    true,
                    true,
                    Long.MAX_VALUE,
                    handler);

In folder already exist working copy (created by TortoiseSVN 1.7.4)
Before, I'm use TortoiseSVN 1.6.* and SVNKit 1.3.5, and all worked fine.
When I switched to TortoiseSVN 1.7.4, I upgraded SVNKit to 1.7.0 alpha-2. And saw this exception...
PS: Sorry for my bad English.
PPS: Also, this is part of console output with -Djavax.net.debug="all"
[Raw read]: length = 5
0000: 15 03 00 00 02 .....
[Raw read]: length = 2
0000: 02 14 ..
main, READ: SSLv3 Alert, length = 2
main, RECV SSLv3 ALERT: fatal, bad_record_mac
main, called closeSocket()
main, handling exception: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
main, called close()
main, called closeInternal(true)
main, called close()
main, called closeInternal(true)
Comments (15)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Dmytro Kryvenko
  Dmytro Kryvenko
17 Jan 2012 16:55
16 months ago
I found solution: run with -Dsvnkit.http.sslProtocols="SSLv3"
But I think it's still a bug...
Alexander Kitaev
  Alexander Kitaev
17 Jan 2012 23:26
16 months ago
This is known problem, but it is more an issue of JDK 1.6 rather than SVNKit. To resolve it you may use JDK 1.7 or configure you server to enable TLSv1, not only SSLv3.
Dmytro Kryvenko
  Dmytro Kryvenko
20 Jan 2012 12:30
16 months ago
But -Dhttps.protocols="SSLv3,TLSv1" doesn't work
guest
  guest
23 Jan 2012 15:24
15 months ago
I have the same
org.tmatesoft.svn.core.SVNException: svn: Received fatal alert: bad_record_mac
svn: OPTIONS request failed on '/project_sls'
 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106)
~[svnkit-1.3.7.jar:na]
 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90)
~[svnkit-1.3.7.jar:na]
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:645)
~[svnkit-1.3.7.jar:na]
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:280)
~[svnkit-1.3.7.jar:na]
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:268)
~[svnkit-1.3.7.jar:na]
 at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:536)
~[svnkit-1.3.7.jar:na]
 at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
~[svnkit-1.3.7.jar:na]
 at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1009)
~[svnkit-1.3.7.jar:na]
 at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.checkPath(DAVRepository.java:219)
~[svnkit-1.3.7.jar:na]
guest
  guest
25 Jan 2012 16:33
15 months ago
guest
  guest
25 Jan 2012 16:37
15 months ago
In 1.3.5 it worked fine. I mean that in my case it fails with 1.3.6 and above but works perfectly in 1.3.5
guest
  guest
30 Jan 2012 14:16
15 months ago
I would like to add that -Dsvnkit.http.sslProtocols="SSLv3" worked for me. However I don't understand why it works fine without using -Dsvnkit.http.sslProtocols="SSLv3" in 1.3.5 but I doesn't in *1.3.6/7*. This suggests that this is rather SVNKIT issue than Java 5.
guest
  guest
29 Feb 2012 09:50
14 months ago
  • Dsvnkit.http.sslProtocols="SSLv3" ... How and where to write this command? Can anybody help. I am using mac
Alexander Kitaev
  Alexander Kitaev
01 Mar 2012 20:09
14 months ago
It is a system property. Usually one sets it when starts JVM (java), i.e in the command script:

java -Dsvnkit.http.sslProtocols=SSLv3 -classpath a.jar:svnkit.jar:... mainClassName

Or one may set it programatically at runtime:

System.setProperty("svnkit.http.sslProtocols", "SSLv3");
guest
  guest
15 Jun 2012 23:12
11 months ago
I just installed eclipse Subversion SVN Team Provider (1.0.0I20130601-1700) and SVNKit 1.3.7 (3.0.0.I20120601-1700) on my Linux machine and saw this bug.

To "fix it" I edited /etc/eclipse.ini and added a line with -Dsvnkit.http.sslProtocols=SSLv3, and now it allows me to connect and browse. Having quotes around SSLv3 (as stated earlier) seems to give eclipse some grief. Enjoy.
guest
  guest
07 Jul 2012 08:38
10 months ago
Thank you guest. That's it. -Dsvnkit.http.sslProtocols=SSLv3 in eclipse.ini makes it work.
guest
  guest
15 Aug 2012 09:28
9 months ago
Thanks. -Dsvnkit.http.sslProtocols=SSLv3 worked for me too.
guest
  guest
15 Aug 2012 13:49
9 months ago
-Dsvnkit.http.sslProtocols=SSLv3 worked for me too. Spent a day trying to fix this problem. Thank you.
guest
  guest
19 Feb 2013 13:32
3 months ago
有人碰到过这个问题吗?怎么解决的呢?QQ:454061354hey am using windows 7 and while giving the svn url and getting the error "Unable to access http://" "/trunk/yahoo/ydn : svn: OPTIONS /" "/ydn failed
org.tmatesoft.svn.core.SVNException: svn: OPTIONS /view/yahoo/yos/trunasdfasdfk/yahoo/ydn failed
Please help me over this
Alexander Kitaev
  Alexander Kitaev
22 Feb 2013 15:33
3 months ago
In case you think failure is SSL related, please try latest SVNKit build - there are number of SSL fixes that may resolve the problem. You may get the build at http://teamcity.tmatesoft.com/viewLog.html?buildId=5349&tab=artifacts&buildTypeId=bt43
Apply Command

Command Preview: