Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-20029

Unable to see Bamboo warnings in Bitbucket Pull request overview page

XMLWordPrintable

      Issue Summary

      Bamboo warnings can no longer be seen in Bitbucket pull request page.

      Steps to Reproduce

      1. Create Application links between Bitbucket and Bamboo DC and make sure they are in connected state.
      2. Add linked repository (testrepo) in Bamboo
      3. In Bitbucket, create/push a file in java/any other language (ex. test.java) that writes warnings on compilation into "testrepo"
      4. In Bamboo, create a plan and add the following tasks
        1. configure a script task to compile the source file in Bitbucket. For example -
          javac -Xlint test.java

          that compiles the test.java file in Bitbucket and reports errors

        2. Configure "Build warnings parser" configuration task to compile the source code file
      5. Navigate to "Branches" tab in Bamboo plan configuration and select "When a pull request is created (Forked repositories are allowed)" under "Create plan branch" section.
      6. Save the Bamboo plan configuration and enable the plan.
      7. Create a branch b1 and make/push changes to the file test.java
      8. Create a pull request from b1 -> master which triggers a build in Bamboo.
      9. Bamboo warnings hyperlink is not seen in Pull request overview page

      Expected Results

      Bamboo warnings are seen directly in Pull request page.

      Actual Results

      Bamboo warnings are not seen in pull request overview page.

      In atlassian-bitbucket.log, we see

      2025-03-06 10:35:09,232 DEBUG [http-nio-7990-exec-5] @4YC9HHx635x380x1 <IP> "GET /rest/insights/1.0/projects/<PROJ>/repos/<repo>/commits/92c7f9c7d6c4903a8556b92408339fefb4af343a/reports/BLUE-BLUE12-1 HTTP/1.1" c.a.b.i.r.f.EscalateAnonymous2LOFilter Escalating permissions to [REPO_READ] for anonymous 2LO REST call
      2025-03-06 10:35:09,260 DEBUG [http-nio-7990-exec-5] @4YC9HHx635x380x1 <IP> "GET /rest/insights/1.0/projects/<PROJ>/repos/<repo>/commits/92c7f9c7d6c4903a8556b92408339fefb4af343a/reports/BLUE-BLUE12-1 HTTP/1.1" c.a.b.i.r.e.ServiceExceptionMapper Mapping AuthorisationException to REST response 401 - You are not permitted to access this resource
      

      In Bamboo log, we see

      2025-03-06 10:35:09,300 ERROR [WarningsSender-2] [BuildWarningSenderWorker] com.atlassian.stash.rest.client.api.StashUnauthorizedRestException: You are not permitted to access this resource
      com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException: com.atlassian.stash.rest.client.api.StashUnauthorizedRestException: You are not permitted to access this resource
      	at com.atlassian.bamboo.plugins.stash.BitbucketServerBuildWarningsUpdater.lambda$sendBuildWarnings$3(BitbucketServerBuildWarningsUpdater.java:97) ~[?:?]
      	at com.atlassian.bamboo.plugins.stash.BitbucketServerBuildWarningsUpdater.withBbsRepository(BitbucketServerBuildWarningsUpdater.java:145) ~[?:?]
      

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

        1. 93.png
          93.png
          89 kB
        2. 81.png
          81.png
          329 kB

              8ab5f4fb2885 Dyon Georgopoulos
              tpothuraju@atlassian.com Tejaswini P
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: