-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 9.2.14, 9.6.4, 10.0.0-rc3
-
Component/s: Repository (Github)
-
None
-
1
-
Severity 2 - Major
-
1
Issue Summary
Changing repository branch on a plan branch does not work for Github Enterprise repositories
This is reproducible on Data Center: ![]()
Steps to Reproduce
- Create a build plan with multiple linked GitHub enterprise repositories.
- Create a plan branch.
- On the plan branch configuration, go to repository tab.
- Click on the second repository.
- When the Linked Repository pages opens thry to browse the availuable branches.
Expected Results
You should be able to browse the branches and change the branch selected.
Actual Results
When the page opens or when you click on the drop-down for branch selection you get the following error:
2024-08-08 12:07:11,087 WARN [http-nio-8085-exec-21 url: /rest/pref/latest/user; user: admin] [WebComponent] A servlet request, to the URI http://bamboo9214:8085/rest/pref/latest/user, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
2024-08-08 12:07:13,054 INFO [http-nio-8085-exec-20 url: /branch/admin/config/configureChainBranchRepositories.action; user: admin] [DeprecatedIdNameAttribute] The use of 'id' deprecated. Use 'var' instead. Params: {}
2024-08-08 12:07:31,163 WARN [http-nio-8085-exec-3 url: /rest/git/latest/gh/repositories/eternalrainswillcome/sorceress/branches/; user: admin] [RESTCall] Response from GET https://api.github.com/repos/eternalrainswillcome/sorceress/branches?per_page=100 (404)
2024-08-08 12:07:31,165 WARN [http-nio-8085-exec-3 url: /rest/git/latest/gh/repositories/eternalrainswillcome/sorceress/branches/; user: admin] [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:362) ~[atlassian-bamboo-plugin-git-9.2.14.jar:?]
at com.atlassian.bamboo.plugins.git.GitHubAccessor.getFoldedListFromGitHubApi(GitHubAccessor.java:259) ~[atlassian-bamboo-plugin-git-9.2.14.jar:?]
thrown in the atlassian-bamboo.log file
And an error message on UI: 
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- mentioned in
-
Page Loading...