Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2010-02-15 18:52:47 +0000
committerrelves2010-02-15 18:52:47 +0000
commit2069763d1e0793eeab1b9052e82cd882dc30a270 (patch)
tree485f1cd21350354499d654a1bf2fc26c1ecefc07 /org.eclipse.mylyn.bugzilla.core
parent95c50359461e8492f158ff2521d83ff4d7a7ce62 (diff)
downloadorg.eclipse.mylyn.tasks-2069763d1e0793eeab1b9052e82cd882dc30a270.tar.gz
org.eclipse.mylyn.tasks-2069763d1e0793eeab1b9052e82cd882dc30a270.tar.xz
org.eclipse.mylyn.tasks-2069763d1e0793eeab1b9052e82cd882dc30a270.zip
290465: fix Bugzilla test suite
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290465
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java8
1 files changed, 7 insertions, 1 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 83dac17ca..722275c19 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
@@ -1715,9 +1715,15 @@ public class BugzillaClient {
StatusHandler.log(new Status(IStatus.WARNING, BugzillaCorePlugin.ID_PLUGIN, builder.toString()));
}
+ // None of the usual errors occurred. Log what cookies were received to aid authentication debugging
+ StringBuilder builder = new StringBuilder("Cookies: "); //$NON-NLS-1$
+ for (Cookie cookie : httpClient.getState().getCookies()) {
+ builder.append(cookie.getName() + " = " + cookie.getValue() + " "); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
RepositoryStatus status = RepositoryStatus.createHtmlStatus(repositoryUrl.toString(), IStatus.INFO,
BugzillaCorePlugin.ID_PLUGIN, RepositoryStatus.ERROR_REPOSITORY, UNKNOWN_REPOSITORY_ERROR + " "
- + body, body);
+ + title + body + "\n\n" + builder.toString(), body);
throw new CoreException(status);

Back to the top