When I try to add a new project into SonarCloud for analysis, it keeps getting stuck in a redirect loop and always redirects me back to the login page.
-
Versions used - SonarCloud
-
Error observed - When adding a new project ‘manually’ for analysis, I select the Organisation, enter the project key + display name, and click ‘Set Up’. And it then keeps redirecting me to the login page asking me to sign in. When I do, it trys to redirect to the new project and then ends up redirecting back to login page again.
-
Steps to reproduce -
** Login to Sonarcloud (using bitbucket)
** Go to organisation
** Click Analysis new project in top menu
** Click “create a project manually” - (i have to import them manually as I am admin of some repos in bitbucket, but not the admin of the workspace in bitbucket, so I can’t import the full workspace)
** Type project key + display name
** Click Set Up
** The app then redirects me to "https://sonarcloud.io/login?return_to=%2Fproject%2Foverview%3Fid%3DXXXXXXXXXXX (where xxxxxx is the project key)
** when I Click button “With Bitbucket” it authorises me with bitbucket then redirects me back to https://sonarcloud.io/project/overview?id=XXXXXXXXXX , and then redirects me back to https://sonarcloud.io/login?return_to=%2Fproject%2Foverview%3Fid%3DXXXXXXXXXXX again.
** If go to the list of projects in SonarCloud I cannot see the new XXXXXXXXXXX project, but when I try to add it again, it says the name XXXXXXXXXXX is already in use now. -
Potential workaround - None.
-
In case of SonarCloud:
- ALM used - Using Bitbucket Cloud
- CI system used - Normally use Bitbucket pipelines on all our other projects, but I haven’ been able to get that far this time.