Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
1
-
1
-
Description
Due to Github Enterprise instances being hosted on-premises, it might happen that at some point the URL of the instance is changed.
Currently, Jira just returns an error when synchronizing the repositories:
2018-02-15 08:58:32,274 http-nio-8080-exec-1401 INFO anonymous 538x114046283x45 \- 43.148.32.90 /rest/bitbucket/1.0/repository/945/sync \[c.a.j.p.d.spi.github.GithubCommunicator] Can not obtain branches list from repository \[ my-repository ] java.io.IOException: Moved Permanently \(301\) at org.eclipse.egit.github.core.client.GitHubClient.createException(GitHubClient.java:564\) at org.eclipse.egit.github.core.client.GitHubClient.get(GitHubClient.java:740\) at org.eclipse.egit.github.core.client.PageIterator.next(PageIterator.java:173\) at org.eclipse.egit.github.core.service.GitHubService.getAll(GitHubService.java:151\) at org.eclipse.egit.github.core.service.GitHubService.getAll(GitHubService.java:135\) at org.eclipse.egit.github.core.service.RepositoryService.getBranches(RepositoryService.java:785\) at com.atlassian.jira.plugins.dvcs.spi.github.GithubCommunicator.getBranches(GithubCommunicator.java:484\) at com.atlassian.jira.plugins.dvcs.spi.github.GithubCommunicator.startSynchronisation(GithubCommunicator.java:572\)