SonarQubeCommunity / sonar-pdf-report

81 stars 81 forks source link

"GET /api/metrics HTTP/1.1" throws a HTTP 400 on version 6.1 #29

Open designerferro opened 7 years ago

designerferro commented 7 years ago

I've upgraded my staging area for sonarqube to 6.1. Unforntunately, there is a 400 error on the metrics request. This was working on 5.6.3, but it's no longer working on 6.1.

I'll be looking at the change log from 5.6.3 to 6.1 to try and find what changed.

designerferro commented 7 years ago

Compiling would thrwou a error on ComponentRoots at /main/java/org/sonar/report/pdf/builder/RuleBuilder.java.

I found out that ComponentRoots from org.sonar.wsclient.issue.IssueQuery, wich exists on the sonar.api since version 3.6, no longer exists. Last version to implement it was api version 5.0. http://javadocs.sonarsource.org/5.0/apidocs/org/sonar/wsclient/issue/IssueQuery.html