Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-04-23 15:51:36 +0000
committerMichael Valenta2004-04-23 15:51:36 +0000
commit6c61ce2ddf88cc12939451a408934c38a3811fcb (patch)
tree689ab95534e3fcb45ed65f24a6c9c0979c9a47cd
parentc0181fb0df000bf77d89e7dfa37db31cd1b41d90 (diff)
downloadeclipse.platform.team-6c61ce2ddf88cc12939451a408934c38a3811fcb.tar.gz
eclipse.platform.team-6c61ce2ddf88cc12939451a408934c38a3811fcb.tar.xz
eclipse.platform.team-6c61ce2ddf88cc12939451a408934c38a3811fcb.zip
59606: Repository access denied
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
index 304c62ff6..87e3ebfb1 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
@@ -741,7 +741,11 @@ public class CVSRepositoryLocation extends PlatformObject implements ICVSReposit
while (true) {
try {
// The following will throw an exception if authentication fails
- String password = retrievePassword();
+ String password = this.password;
+ if (password == null) {
+ // If the instance has no password, obtain it from the cache
+ password = retrievePassword();
+ }
if (user == null) {
// This is possible if the cache was cleared somehow for a location with a mutable username
throw new CVSAuthenticationException(new CVSStatus(IStatus.ERROR, CVSAuthenticationException.RETRY, Policy.bind("CVSRepositoryLocation.usernameRequired"))); //$NON-NLS-1$

Back to the top