backstage / community-plugins

Community plugins for Backstage
Apache License 2.0
148 stars 157 forks source link

🐛 Sonarqube: The url /api/sonarqube/findings?componentKey= deprecated #1125

Open glopezGitHub opened 1 month ago

glopezGitHub commented 1 month ago

Plugin Name

SonarQube

📜 Description

The Sonarqube Enterprise Edition v10.6 the URI /api/sonarqube/findings?componentKey= respond {"msg":"Unknown url : /api/sonarqube/findings"

This version uses the uri api/projects/export_findings?componentKey

👍 Expected behavior

we can configure the api uri in order to inyect the api value

sonarqube: baseUrl: ${SONARQUBE_BASEURL} externalBaseUrl: ${SONARQUBE_BASEURL} apiKey: ${SONARQUBE_APIKEY} api: findingsUrl: api/projects/export_findings?project=

👎 Actual Behavior with Screenshots

image

curl --header 'Authorization: Bearer sqa_xxxx ' 'https://xxx.xxxx.xxxx/api/sonarqube/findings?componentKey=xxxx' {"errors":[{"msg":"Unknown url : /api/sonarqube/findings"}]}[

curl --header 'Authorization: Bearer xxxxx' 'https://xxx.xxx.xxx/api/projects/export_findings?project=xxxxx {"export_findings": [stanceKey='''''' {"key":"xxxxxxxxxxxx","projectKey":"xxxxxxxx",xxxxx}

👟 Reproduction steps

1- Configure Sonarquebe Plugin 2 - Configure Sonarqube Catalog

📃 Provide the context for the Bug.

The tab SonarQube Code Quality No information to display

👀 Have you spent some time to check if this bug has been raised before?

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

nickboldt commented 6 days ago

@punkle ^ FYI