SonarLint Eclipse doesn't delete SonarQube connection configuration on plugin uninstall

815 views
Skip to first unread message

Antti Brax

unread,
Aug 15, 2017, 1:53:18 AM8/15/17
to SonarLint
Hello!

Description: SonarLint Eclipse doesn't delete SonarQube connection configuration on plugin uninstall.

How to reproduce:
1. Install SolarLint plugin in Eclipse.
2. Create new SonarQube connection using username+pasword.
3. Uninstall SolarLint plugin from Eclipse.
4. Install SolarLint plugin in Eclipse.
5. Create new SonarQube connection as in step 2.

What happened:
- Plugin said the name is already in use.
- The old SonarQube Server connection from 1st install could be seen in the "SonarQube Servers" view.

What should have happened:
- Configuration data, especially that that contains usernames and passwords, should have been deleted on plugin uninstall.
- Plugin reinstallation should have happened as if it was a new installation.

Thank you!

janos....@sonarsource.com

unread,
Aug 15, 2017, 5:01:49 AM8/15/17
to SonarLint
Hi,

We'll review our policy on this to decide if this is a good idea, as well as check if it's possible to do (is there a lifecycle event that gets triggered when we can perform this cleanup). Btw, we're using the secure storage facilities of Eclipse for usernames and passwords.

In the meantime, in case it helps, you can delete the files stored by the plugin manually, by removing the ".sonarlint" directory from the workspace.

Cheers,
Janos

Julien HENRY

unread,
Sep 5, 2017, 2:57:40 AM9/5/17
to Janos Gyerik, SonarLint
Hi guys,

AFAIK this is standard for Eclipse plugins to not delete any metadata. Do you know another plugin removing metadata during uninstall?

++

Julien Henry | SonarSource

Developer

http://sonarsource.com


--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/7c69e8cb-f696-4ef0-9d27-4378259a4d3d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages