-
Bug
-
Resolution: Fixed
-
Low
-
6.7.1
-
2
-
Severity 3 - Minor
-
Issue Summary
GitHubException: Not Found occurs when overriding branch on a non-default private GitHub repository for a branch plan in Bamboo.
Environment
- Private GitHub Repository
Steps to Reproduce
- Create a Bamboo plan with two private GitHub repositories with branches
- It's likely reproducible if just the non-default repository is the private GitHub repository too.
- Add a Branch Plan.
- Navigate to the Branch Plan >> Repositories and select the non-default (second) repository.
- Select the branch dropdown to attempt to override it to an alternate branch.
Expected Results
Branch dropdown populates with the list of branches from GitHub.
Actual Results
Only the branch that is already selected on the repository configuration is selectable and a GitHubException: Not Found error flashes temporarily in the UI.
The below exception is thrown in the atlassian-bamboo.log file:
2019-02-08 12:59:35,153 WARN [http-nio-8085-exec-23] [GitHubResource] Failed to load data from GitHub. com.atlassian.bamboo.plugins.git.GitHubAccessor$GitHubException: Not Found at com.atlassian.bamboo.plugins.git.GitHubAccessor.getJSONArrayResponseFromUrl(GitHubAccessor.java:298) at com.atlassian.bamboo.plugins.git.GitHubAccessor.getFoldedListFromGitHubApi(GitHubAccessor.java:195) at com.atlassian.bamboo.plugins.git.GitHubAccessor.getBranches(GitHubAccessor.java:116) at com.atlassian.bamboo.plugins.git.rest.resource.GitHubResource.getBranches(GitHubResource.java:121) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:192) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:83) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:53) at com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:34) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:53) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java:110) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:190)
Workaround
Only workaround is to use a Git type repository instead of a GitHub type repository in Bamboo.
[BAM-20290] GitHubException: Not Found when overriding branch on a non-default private GitHub repository for a branch plan in Bamboo
Resolution | New: Fixed [ 1 ] | |
Status | Original: Long Term Backlog [ 12073 ] | New: Closed [ 6 ] |
Assignee | New: Marcin Gardias [ mgardias ] |
Fix Version/s | New: 6.10.0 [ 86205 ] |
Support reference count | Original: 1 | New: 2 |
Status | Original: Gathering Impact [ 12072 ] | New: Long Term Backlog [ 12073 ] |
Status | Original: Needs Triage [ 10030 ] | New: Gathering Impact [ 12072 ] |
Workflow | Original: Bamboo Workflow 2016 v1 - Restricted [ 3096929 ] | New: JAC Bug Workflow v3 [ 3384597 ] |
Status | Original: Open [ 1 ] | New: Needs Triage [ 10030 ] |
I get this error with Bamboo 9.6.4 but Derek Chow's workaround is still effective.