SVN Pathname not terminated by ':'
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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
Problem
When scanning a SVN repository the following error occurs in the log:
com.cenqua.fisheye.rep.RepositoryClientException: org.apache.subversion.javahl.ClientException: svn: E200020: Pathname not terminated by ':' org.apache.subversion.javahl.ClientException: svn: E200020: Pathname not terminated by ':' org.tmatesoft.svn.core.SVNException: svn: E200020: Pathname not terminated by ':' org.tmatesoft.svn.core.SVNException: svn: E200020: Pathname not terminated by ':'
Diagnosis
Environment
- The error is specific to SVN and occurs only when the
mergeinfo
file has been corrupted for a specific commit.
Diagnostic Steps
- Find the specific commit causing the error in the debug logs.
- Run the
svn diff -r
command found in Step 1, from the command line to confirm that the repository itself is the cause and not Fisheye/Crucible
Cause
Whether intentionally or unintentionally, the mergeinfo
has been either corrupted, manually changed, or deleted.
Workaround
Specify a revision in Administration >> Repositories >> <name of repository> >> SCM Details >> Start Revision
after the corrupted commit.
Resolution
Create a backup of the affected SVN repository before making any changes.
Use the command svn propedit svn:mergeinfo <directory>
to open the mergeinfo
file in a text editor and fix the file manually. This article might provide some insight.