Browse Source

Merge "Fix ChainingCredentialsProvider"

stable-4.3
Christian Halstrick 9 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
2f0b675a71
  1. 10
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ChainingCredentialsProvider.java

10
org.eclipse.jgit/src/org/eclipse/jgit/transport/ChainingCredentialsProvider.java

@ -113,9 +113,15 @@ public class ChainingCredentialsProvider extends CredentialsProvider {
throws UnsupportedCredentialItem {
for (CredentialsProvider p : credentialProviders) {
if (p.supports(items)) {
p.get(uri, items);
if (isAnyNull(items))
if (!p.get(uri, items)) {
if (p.isInteractive()) {
return false; // user cancelled the request
}
continue;
}
if (isAnyNull(items)) {
continue;
}
return true;
}
}

Loading…
Cancel
Save