Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-06-01 17:00:44 -0400
committerspingel2010-06-01 17:00:44 -0400
commit7fe74c7e3c42e63f4035c80bcce7b5abfa3dfb2a (patch)
tree3dc8332049be4836fb5dd233ff3c975f53017eb3 /org.eclipse.mylyn.tasks.core
parent5b6b0b61a89797a024fac244d84be2595ef0613f (diff)
downloadorg.eclipse.mylyn.tasks-7fe74c7e3c42e63f4035c80bcce7b5abfa3dfb2a.tar.gz
org.eclipse.mylyn.tasks-7fe74c7e3c42e63f4035c80bcce7b5abfa3dfb2a.tar.xz
org.eclipse.mylyn.tasks-7fe74c7e3c42e63f4035c80bcce7b5abfa3dfb2a.zip
NEW - bug 315024: fix dead lock when credentials are retrieved from secure store
https://bugs.eclipse.org/bugs/show_bug.cgi?id=315024
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
index e578435c6..059d61052 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
@@ -640,7 +640,12 @@ public final class TaskRepository extends PlatformObject {
public String getUserName() {
// NOTE: if anonymous, user name is "" string so we won't go to keyring
if (!isCachedUserName) {
- cachedUserName = getUserName(AuthenticationType.REPOSITORY);
+ if (useSecureStorage()) {
+ // do not open secure store for username to avoid prompting user for password during initialization
+ cachedUserName = getProperty(getKeyPrefix(AuthenticationType.REPOSITORY) + USERNAME);
+ } else {
+ cachedUserName = getUserName(AuthenticationType.REPOSITORY);
+ }
isCachedUserName = true;
}
return cachedUserName;

Back to the top