Accessing the list of Bitbucket repositories throws "No authentication configured for application link"
Problem
When accessing the list of the available Bitbucket repositories (in the "Bitbucket Server tab" tab), the following message is displayed in the Fisheye/Crucible Repositories page:
Problem communicating with Bitbucket Server
No authentication configured for application link: <ApplicationName>
Where <ApplicationName> is the name provided when setting up the application link to Bitbucket.
The following appears in the atlassian-fisheye-YYYY-MM-DD
.log:
WARN [qtp2129442232-2286 ] fisheye StashExceptionMapper-handleException - Error occurred making request to Bitbucket Server
com.atlassian.fecru.plugins.stash.rest.RestStashRepoListService$NoAuthenticationConfiguredException: No authentication configured for application link <ApplicationName>
at com.atlassian.fecru.plugins.stash.rest.RestStashRepoListService.getStashClient(RestStashRepoListService.java:106) [fecru-stash-integration-plugin-3.10.3-20160112105703_1452618170000.jar:?]
at com.atlassian.fecru.plugins.stash.rest.RestStashRepoListService.getStashRepoList(RestStashRepoListService.java:119) [fecru-stash-integration-plugin-3.10.3-20160112105703_1452618170000.jar:?]
Cause
An URL for Bitbucket Cloud (instead of Server) has been used when creating the application link (e.g. https://bitbucket.org/).
Resolution
Instead of creating an application link, add the repository directly by using the "Native repository access" tab by following these steps:
- Go to Administration -> Repositories
- Select the "Native repository access" tab
- Select "Add repository"
- When asked select the expected "Repository type" (e.g. Git) and enter the Bitbucket Cloud address for your repository as repository location. The repository location is the link you get when you select the Clone option in Bitbucket Cloud