Adding Subversion Repository to JIRA Throws Error 'XML document structures must start and end within the same entity'
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
Subversion Repository can't be added into JIRA.
The following appears in the atlassian-jira.log
:
1
2
3
ERROR ServiceRunner Subversion Revision Indexing Service [plugin.ext.subversion.SubversionManagerImpl] Error retrieving changes from the repository.
org.tmatesoft.svn.core.SVNException: svn: E175002: Processing REPORT request response failed: XML document structures must start and end within the same entity. (/svn/!svn/bc/12345)
svn: E175002: REPORT request failed on '/svn/!svn/bc/12345'
Cause
There are multiple possibilities for the error 'E175002' and 'XML document structures must start and end within the same entity' being thrown. The possibilities are:
such as SVNKit bundled in the JIRA Subversion Plugin is incompatible with the Subversion Server version
the specific revision is "dirtied"
SVNkit is trying to use negotiated authentication rather than Basic Authentication
Resolution
Ensure the SVNKit is compatible with Subversion Server version
Run the command to check if the version is dirtied or corrupted:
1
svn log -r N-1:N -v --with-all-revprops --xml <svn_repo>
ℹ️ N is referring to revision number . Basically, check if all the tag is closed properly. Eg: <log> tag must be closed with </log>
force JIRA Subversion Plugin to use Basic Authentication in the JIRA Startup Option:
1
-Dsvnkit.http.methods=Basic
Was this helpful?