ALM used: Bitbucket Cloud
CI system: Bitbucket Pipelines
Scanner command / repository languages: Not applicable to reproducing this issue; it occurs in the organisation settings UI.
Project URL: Private organisation; identifiers can be provided privately.
Error observed
After migrating the Bitbucket integration to Forge, opening Organisation Settings → Organisation binding causes repeated login redirects. Normal SonarQube Cloud login and other pages work.
The HAR shows this request repeatedly failing:
GET /api/alm_integration/show_bound_organization?organization=<redacted>
HTTP 401
{"errors":[{"msg":"User is not admin of the team"}]}
The current-user API confirms an authenticated session using Bitbucket.
We also found that:
-
Sonar’s
/dop-translation/organization-bindingsendpoint returns a binding whose workspace UUID differs from our current workspace UUID, verified using Bitbucket’s workspace API. -
“View on Bitbucket” opens the stored UUID-based URL and returns “Resource not found”.
-
The Forge app is installed in our current Bitbucket workspace, and the old Sonar Connect app is no longer listed.
-
The Forge app settings show “Create new organization”. Refreshing connection status does not change this.
-
Sonar still displays the Forge migration banner.
Steps to reproduce
-
Sign in to SonarQube Cloud using Bitbucket.
-
Open the existing organisation.
-
Navigate to Administration → Organisation Settings → Organisation binding.
-
The page displays loading spinners, then redirects through login repeatedly.
Potential workaround
No workaround identified. Refreshing the Forge app’s connection status did not resolve the issue.
We have not created another organisation or changed the organisation key.
What caused the workspace UUID mismatch, causing the binding lookup failure and advise how to restore the existing organisation’s connection while preserving projects, analysis history and subscription?