SonarQube 5.0.1 - Error declaring a false-positive issue

323 views Asked by At

I've a "Failed" message displayed when I declare a "false-positive" issue from the Web UI of Sonarqube (5.0.1). A 400 error is returned with this response : "Transition from state RESOLVED does not exist: falsepositive"

But the issue is declared "unresolved" in the web ui (both on global issues and project page) and it broke the build (since I'm using Build Breaker plugin).

I have a doubt on the shown issue because it should be logically solved by my previous commit (cache problem ?).

How can I resolve this problem ?

1

There are 1 answers

2
Mithfindel On BEST ANSWER

This can happen when the ElasticSearch index of issues is out of sync with the database. You should stop your server, remove the $SQ_HOME/data/es directory and restart the server. It might take some time, depending on the number of issues in your database, but it should solve the problem.