-
Notifications
You must be signed in to change notification settings - Fork 161
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
[ERROR] Either 'id' or 'name' must be provided #274
Comments
Hi @zied-ellouze, thank you for your feedback ! The error you have seems to come from an API call that is not executed correctly. |
Hi @ErwanGauduchon |
I've just installed SonarQube 7.9.6 on Windows 10 but I'm not able to reproduce your error. Could you please have a look at your SonarQube logs while you're executing the CNES Report ? |
Hi @Sancretor I will ask the team manages SonarQube to check the Sonar logs. SonarQube is installed on a Linux machine and the command I run it from a windows PC. Here is the CNES Report log if it helps |
We looked at the logs you sent and the lines don't match the version 3.3.1 of CNES Report. |
Hi, |
Hi @seb0uil Actually, you found an error inside the code, but it's not the one @zied-ellouze is facing. But here, SonarQube says that the "name" parameter is missing, which is impossible because this parameter is hardcoded in the requests properties. |
No, actually it's the same issue. In sonar-cnes-report, the name parameter is in the query, as you said, it's hardcoded, but due to the bad url encoding, sonar seems to misinterpret the url. In my case, i compile the 3.3.1 tag using JDK 11. I guess @zied-ellouze use the same, but the log he provided are not sonarqube logs, but only logs from command line sonar-cnes-report. |
Oh... OK I finally get it, sorry. But the 3.3.1 version is the last release we will produce for SonarQube 7.9, and we are working on the 8.9 LTS compatibility. |
|
Alright, thanks a lot for your understanding and your feedback. |
Thank you @Sancretor @seb0uil : @seb0uil solution resolved the error and I was able to generate the reports. @ErwanGauduchon : I got the wrong version when I launched the command for logs. I tried several versions |
Describe the bug
Impossible to generate report with command line
To reproduce
Execute command :
java -jar sonar-cnes-report-3.3.1.jar -t 3f91c4c533c4cbda367cb21eb48dbb5fd10b07cd -s https://host -p projectid -b branch
SonarQube URL: https://host
SonarQube online: true
Detected SonarQube version: 7.9.4
[ERROR] Either 'id' or 'name' must be provided
I tested with several options :
But everytime i have some error
User environment
The text was updated successfully, but these errors were encountered: