SonarLint error when updating local storage

Please provide

  • Operating system: Windows 10
  • SonarLint plugin version:7.0.05289 Intelij 2021.3.3
  • Programming language you’re coding in: Java
  • Is connected mode used:
    • Connected to SonarQube 9.6 Developer Edition

And a thorough description of the problem / question:

When I try to update the local storage I get the error ‘Insufficient privileges’
IN the logs I see:
GET 403,UTS&component=xxxxx&ps=500&p=1
GET 403,java,js,kotlin,php,py,ruby,scala,secrets,swift,ts,xml

We are having a license to Sonarqube Developer edition and I used a generated token to access the URL.
I tried with a generated token from Admin user or a generated token from my user (which is an admin as well). The same results.

All the other calls are ok. Ex:
GET 200

Can you tell me where the problem is?
Do you need more concrete information about our subscription and projects?

Hello @Cristian,

What kind of token do you create in SQ ? For SonarLint to work you need a token of “User token” type.

If it’s already the case, maybe you need to have a look at Global and Project permissions for your users. More details in Security | SonarQube Docs. An important permission to grant for those endpoints is the ‘Browse’ permission.

Let me know if this helped

Hi Damien,
Sorry, I have somehow missed your answer to my question.
It seems the user-token helped.
Thanks a lot :slight_smile:
But for one projectI get an error:

And I do the same way for all the projects. Any idea?

1 Like