Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20290

GitHubException: Not Found when overriding branch on a non-default private GitHub repository for a branch plan in Bamboo

      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

      1. 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.
      2. Add a Branch Plan.
      3. Navigate to the Branch Plan >> Repositories and select the non-default (second) repository.
      4. 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

            I get this error with Bamboo 9.6.4 but Derek Chow's workaround is still effective.

            Joshua Issac added a comment - I get this error with Bamboo 9.6.4 but Derek Chow's workaround is still effective.
            Marcin Gardias made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Long Term Backlog [ 12073 ] New: Closed [ 6 ]
            Marcin Gardias made changes -
            Assignee New: Marcin Gardias [ mgardias ]
            Marcin Gardias made changes -
            Fix Version/s New: 6.10.0 [ 86205 ]
            Bugfix Automation Bot made changes -
            Support reference count Original: 1 New: 2

            I see this whilst configuring the private repositories as linked repositories - when this happened I found that just clicking "Save repository" would avoid the exception and un-stick the dropdown.

            Derek Chow added a comment - I see this whilst configuring the private repositories as linked repositories - when this happened I found that just clicking "Save repository" would avoid the exception and un-stick the dropdown.
            Pawel Skierczynski made changes -
            Status Original: Gathering Impact [ 12072 ] New: Long Term Backlog [ 12073 ]
            Pawel Skierczynski made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 3096929 ] New: JAC Bug Workflow v3 [ 3384597 ]
            Status Original: Open [ 1 ] New: Needs Triage [ 10030 ]

            I'm with version 6.6.3 with the same problem

            Denner Bitti Padilha added a comment - I'm with version 6.6.3 with the same problem

              mgardias Marcin Gardias
              jowen@atlassian.com Jeremy Owen
              Affected customers:
              10 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: