Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hub-sonarqube giving "component" error #11

Open
techfornrs opened this issue Oct 13, 2021 · 0 comments
Open

hub-sonarqube giving "component" error #11

techfornrs opened this issue Oct 13, 2021 · 0 comments

Comments

@techfornrs
Copy link

techfornrs commented Oct 13, 2021

Following https://synopsys.atlassian.net/wiki/spaces/INTDOCS/pages/622990/Black+Duck+SonarQube the plugin was installed and configured (setting the properties relating to HUB username, password). When accessing the Blackduck analysis page under Sonarqube (More-> Black Duck Hub Security Analysis), it is giving processing status and no response/data. While debugging found the
{"errors":[{"msg":"The \u0027component\u0027 parameter is missing"}]}

On closer look found the following API call was missing "component" parameter.
https://SONARQUBE-HOST/api/measures/component_tree?baseComponentKey=ABC&p=1&ps=100&metricKeys=num_vuln_low%2C%20num_vuln_med%2C%20num_vuln_high%2C%20num_vuln_critical%2C%20hub_component_names%2C%20num_components_rating&s=metric&metricSort=hub_component_names&metricSortFilter=withMeasuresOnly

SonarQube version 8.9.1 (build 44547)
hub-sonarqube plugin version 1.2.0

@techfornrs techfornrs changed the title Blackduck plugin for sonarqube giving "component" error hub-sonarqube giving "component" error Oct 13, 2021
zkb-cisupport added a commit to zkb-cisupport/hub-sonarqube that referenced this issue Nov 30, 2021
blackducksoftware#11 - hub-sonarqube giving "component" error
due to deprecation of Sonar api/measures/component_tree 'baseComponentKey' parameter in Sonar v8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant