Adding Subversion Repository to JIRA Throws Error 'XML document structures must start and end within the same entity'
Symptoms
Subversion Repository can't be added into JIRA.
The following appears in the atlassian-jira.log
:
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:
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:
-Dsvnkit.http.methods=Basic
Last modified on Nov 2, 2018
Powered by Confluence and Scroll Viewport.