Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-03-19 21:05:32 +0000
committerfbecker2010-03-19 21:05:32 +0000
commit670b200b08e71bff6796b341946bfcf763ea49ea (patch)
treeabf633b373cc6f8c0a03c467f14928cad8169c80 /org.eclipse.mylyn.bugzilla.core
parent10cf981b703d2729516dd7c60f34a4b4cc10694b (diff)
downloadorg.eclipse.mylyn.tasks-670b200b08e71bff6796b341946bfcf763ea49ea.tar.gz
org.eclipse.mylyn.tasks-670b200b08e71bff6796b341946bfcf763ea49ea.tar.xz
org.eclipse.mylyn.tasks-670b200b08e71bff6796b341946bfcf763ea49ea.zip
ASSIGNED - bug 305267: Bugzilla verification fails starting with 3.4.5
https://bugs.eclipse.org/bugs/show_bug.cgi?id=305267
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
index 8ec26cad1..56eb9e876 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
@@ -424,8 +424,13 @@ public class BugzillaClient {
throw new CoreException(new BugzillaStatus(IStatus.ERROR, BugzillaCorePlugin.ID_PLUGIN,
RepositoryStatus.ERROR_NETWORK, "Http error: " + HttpStatus.getStatusText(code))); //$NON-NLS-1$
}
-
- if (hasAuthenticationCredentials()) {
+ if (httpAuthCredentials != null && httpAuthCredentials.getUserName() != null
+ && httpAuthCredentials.getUserName().length() > 0) {
+ // If httpAuthCredentials are used HttpURLConnection.HTTP_UNAUTHORIZED when the credentials are invalide so we
+ // not need to test teh cookies.
+ // see bug 305267 or https://bugzilla.mozilla.org/show_bug.cgi?id=385606
+ loggedIn = true;
+ } else if (hasAuthenticationCredentials()) {
for (Cookie cookie : httpClient.getState().getCookies()) {
if (cookie.getName().equals(COOKIE_BUGZILLA_LOGIN)) {
loggedIn = true;

Back to the top