Measures shows Security Hotspots but the Security Hotspots tab is empty

SonarQube Server (Enterprise Edition): v10.7 (96327)
Deployed: Docker

For a project in the WebUI, under Measures, I see the following:

Then when I click through, I get to the security hotspots of a single file:

But when I go to the file itself, it does not show the security hotspot anymore!

Then, when I go to the “Security Hotspots” tab, I also see the message “There are no security hotspots to review”.

Anyone else has this problem?

I think it might be related with “Overall Code” vs “New Code”?
Our rule for “New Code” is all code of the last 30 days, so I thought that maybe it is related that the code with the Security Hotspots was scanned over 30 days ago?

It’s still weird that the Security Hotspots do show up in Measures but not anywhere else.
This makes it really hard to track them :frowning:

I think this might be the same thing as this topic:

In Overall Code Overview I see
image

But when I click on the “6”, I get 0 issues…

Hi,

To be clear, you have both missing Security Hotspots, and missing Overall Security issues?

This sounds like a corrupt Elasticsearch index. Can you force a reindex?

 
Ann

Hello Ann,

Thanks a lot! A re-indexation did indeed fix this issue.
That will be my nr1 goto solution whenever something weird happens :slight_smile:

1 Like