Non-admin user unable to change branch from linked repositories (Github)

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      When a non-admin user who has permissions to configure the plan level, such as (admin), switches the plan branches and goes to the repository settings, it throws a 500 error reporting null username and null password

      atlassian-bamboo.log
      2025-09-24 20:52:54,648 ERROR [http-nio-8085-exec-24 url: /bamboo/rest/git/latest/gh/repositories/; user: devtest] [ThrowableExceptionMapper] Uncaught exception 4060de02-6b7c-40dc-80ee-2cbe2a886171 thrown by REST service: Errors: {repository.github.username=[Username can not be empty.]}
       (log message continued...) Error Messages: []
      com.atlassian.bamboo.exception.DefaultWebValidationException: Errors: {repository.github.username=[Username can not be empty.]}
      Error Messages: []
      	at com.atlassian.bamboo.utils.BambooValidationUtils.checkErrors(BambooValidationUtils.java:85) ~[atlassian-bamboo-core-10.2.7.jar:?]
      	at com.atlassian.bamboo.plugins.git.rest.resource.GitHubResource.getAccessCredentials(GitHubResource.java:323) ~[atlassian-bamboo-plugin-git-10.2.7.jar:?]
      	at com.atlassian.bamboo.plugins.git.rest.resource.GitHubResource.getAvailableRepositories(GitHubResource.java:99) ~[atlassian-bamboo-plugin-git-10.2.7.jar:?]
      	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
      	at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
      

      Steps to Reproduce

      1. Create a Plan, a Bamboo user, and a group
      2. Grant admin permission to the group at the plan level only.
      3. Grant Project permissions to view configuration
      4. Have GitHub Linked repo configured
      5. Create some plan branches
      6. Log in as the non-admin user
      7. Try switching branches
      8. Go to Repositories tab
      9. See the error under the branch. Like:
        Failed to load data from GitHub.[500 error]
        

      Expected Results

      No errors were shown during the access workflow

      Actual Results

      1. See the error under the branch. Like:
        Failed to load data from GitHub.[500 error]
        

      Workaround

      No workaround available

        1. image (23)-1.png
          468 kB
          Arthur Dantas

            Assignee:
            Mateusz Szmal
            Reporter:
            Arthur Dantas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: