-
Bug
-
Resolution: Fixed
-
Low
-
9.3.2, 9.4.2
-
2
-
Severity 3 - Minor
-
11
-
Issue Summary
Bamboo warnings can no longer be seen in Bitbucket pull request page.
Steps to Reproduce
- Create Application links between Bitbucket and Bamboo DC and make sure they are in connected state.
- Add linked repository (testrepo) in Bamboo
- In Bitbucket, create/push a file in java/any other language (ex. test.java) that writes warnings on compilation into "testrepo"
- In Bamboo, create a plan and add the following tasks
- 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
- Configure "Build warnings parser" configuration task to compile the source code file
- configure a script task to compile the source file in Bitbucket. For example -
- 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.
- Save the Bamboo plan configuration and enable the plan.
- Create a branch b1 and make/push changes to the file test.java
- Create a pull request from b1 -> master which triggers a build in Bamboo.
- 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
- mentioned in
-
Page Loading...