Error rendering 'com.atlassian.jira.plugin.ext.subversion:subversion-commits-tabpanel' after connecting JIRA to Subversion
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
The following appears in Subversion's tab:
1
Error rendering 'com.atlassian.jira.plugin.ext.subversion:subversion-commits-tabpanel'. Please contact your JIRA administrators.
Cause
In the Subversion Add-On source code there is a hardcoded parameter specifying the SSH authentication through port 22. Possibly this port (or other ports depending on how your Subversion is configured) is not allowed in your environment:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
public void activate() {
try {
final SVNURL url = parseSvnUrl();
repository = createRepository(url);
final ISVNAuthenticationManager authManager;
if (null != getPrivateKeyFile()) {
authManager = new BasicAuthenticationManager(getUsername(), new File(getPrivateKeyFile()), getPassword(), 22);
} else {
authManager = SVNWCUtil.createDefaultAuthenticationManager(getUsername(), getPassword());
}
repository.setAuthenticationManager(new ISVNAuthenticationManagerDelegator(authManager));
repository.testConnection();
active = true;
}
catch (SVNException e) {
log.error("Connection to Subversion repository " + getRoot() + " failed: " + e, e);
// We don't want to throw an exception here because then the system won't start if the repo is down
// or there is something wrong with the configuration. We also still want this repository to show up
// in our configuration so the user has a chance to fix the problem.
active = false;
inactiveMessage = e.getMessage();
}
}
Resolution
If your URL looks like: http://subversion/repos/, then you're probably going over Port 80.
If your URL looks like: https://subversion/repos/, then you're probably going over Port 443.
If your URL looks like: svn://subversion/, then you're probably going over Port 3690.
If your URL looks like: svn+ssh://subversion/repos/, then you're probably going over Port 22.
If your URL contains a port number like: _http://subversion/repos:8080, then you're using that port.
Was this helpful?