Improve error handling when using SecureStore
commit28fc513377a18b2bf56a73564a5e83e5051f4aa5
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 6 Jun 2016 14:18:22 +0000 (6 16:18 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 8 Dec 2016 23:38:03 +0000 (9 00:38 +0100)
tree53aed2cda724e0c1b49a148bd1dc5aa36fc61d4b
parent7a8a09de3dca421abf20ce430cf2e5348381a7f7
Improve error handling when using SecureStore

- if reading credentials fails remove the failing credentials from
secure store, otherwise the same error will occur again next time when
trying again to get the same credentials from a corrupted entry stored
in secure store
- improve error messages logged when a secure store operation fails
- add SecureStoreUtils.clearCredentials() to simplify error handling

Bug: 495539
Change-Id: Ie6e8712b4a8eb936bfe874c2f01ce081305ba156
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/SecureStoreUtils.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/credentials/EGitCredentialsProvider.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/credentials/LoginService.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/ClearCredentialsCommand.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties