IndexOutOfBound Exception With Subversion Configuration

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

When configuring Subversion repository or checking out source code, this error is written in the logs:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 java.lang.IndexOutOfBoundsException at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:88) at org.tmatesoft.svn.core.internal.wc.SVNWCProperties.readProperty(SVNWCProperties.java:473) at org.tmatesoft.svn.core.internal.wc.SVNWCProperties.asMap(SVNWCProperties.java:88) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager$PersistentAuthenticationProvider.saveAuthentication(DefaultSVNAuthenticationManager.java:603) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.acknowledgeAuthentication(DefaultSVNAuthenticationManager.java:216) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:530) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:257) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:245) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:454) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:97) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:643) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:172) at com.atlassian.bamboo.repository.svn.SvnRepository.detectCommitsForUrl(SvnRepository.java:261)

Cause

A SVN proprietary file that persists user credentials for authentication and authorization against SVN repository is corrupt.

For further information, see the SVNKit bug report below:

Resolution

The solution is to remove <USER-HOME>/.subversion. To prevent this issue from occurring again, upgrade your SVNKit library version to 1.2.3 or above.

Upgrading SVNKit might not be straight forward for older Bamboo releases, if the SVNKit API has changed.

In any case, upgrading to latest Bamboo release should resolve this issue. If in doubt contact Atlassian Support for further assistance.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.