Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-03-05 04:09:46 +0000
committerspingel2010-03-05 04:09:46 +0000
commit62ed9b6114b28237581c6f465dbf3465b063d789 (patch)
tree5f7293a4f6a8064a4e6ba8904adac6cc5bde6fa3 /org.eclipse.mylyn.trac.core
parentbd4e98a64dbc8d8cc5d706702dbf0015fb2b32de (diff)
downloadorg.eclipse.mylyn.tasks-62ed9b6114b28237581c6f465dbf3465b063d789.tar.gz
org.eclipse.mylyn.tasks-62ed9b6114b28237581c6f465dbf3465b063d789.tar.xz
org.eclipse.mylyn.tasks-62ed9b6114b28237581c6f465dbf3465b063d789.zip
RESOLVED - bug 302792: Trac tests spuriously fail with authentication errors
https://bugs.eclipse.org/bugs/show_bug.cgi?id=302792
Diffstat (limited to 'org.eclipse.mylyn.trac.core')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java
index 9d13e63ac..4e9758cec 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java
@@ -94,7 +94,12 @@ public class TracWebClient extends AbstractTracClient {
if (!authenticated) {
AuthenticationCredentials credentials = location.getCredentials(AuthenticationType.REPOSITORY);
if (credentialsValid(credentials)) {
- authenticate(monitor);
+ try {
+ authenticate(monitor);
+ } catch (TracLoginException e) {
+ // re-try once, see bug 302792
+ authenticate(monitor);
+ }
}
}

Back to the top