diff options
author | relves | 2010-01-19 22:40:36 +0000 |
---|---|---|
committer | relves | 2010-01-19 22:40:36 +0000 |
commit | 3cd15160e125adb3963c2b46b246728dafef7b98 (patch) | |
tree | df6bc60ed28bb97a3e94b70c19d599c891c2e570 | |
parent | 9f5e85fae2a69e141d80416eec9e1967f20bf7c7 (diff) | |
download | org.eclipse.mylyn.tasks-3cd15160e125adb3963c2b46b246728dafef7b98.tar.gz org.eclipse.mylyn.tasks-3cd15160e125adb3963c2b46b246728dafef7b98.tar.xz org.eclipse.mylyn.tasks-3cd15160e125adb3963c2b46b246728dafef7b98.zip |
NEW - bug 268207: Repository connection error w/ Bugzilla 3.2.2 and Mylyn 3.0.4, 3.0.5, 3.1, & 3.3
https://bugs.eclipse.org/bugs/show_bug.cgi?id=268207
-rw-r--r-- | org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java | 9 |
1 files changed, 5 insertions, 4 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 cefcd1e0d..2a30ef549 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 @@ -93,6 +93,8 @@ import org.eclipse.mylyn.tasks.core.data.TaskDataCollector; */ public class BugzillaClient { + private static final String UNKNOWN_REPOSITORY_ERROR = "An unknown repository error has occurred: "; //$NON-NLS-1$ + private static final String COOKIE_BUGZILLA_LOGIN = "Bugzilla_login"; //$NON-NLS-1$ protected static final String USER_AGENT = "BugzillaConnector"; //$NON-NLS-1$ @@ -1679,14 +1681,13 @@ public class BugzillaClient { for (Cookie cookie : httpClient.getState().getCookies()) { builder.append(cookie.getName() + " = " + cookie.getValue() + " "); //$NON-NLS-1$ //$NON-NLS-2$ } - StatusHandler.log(new Status(IStatus.WARNING, BugzillaCorePlugin.ID_PLUGIN, - "An unknown repository error has occurred: " + body)); //$NON-NLS-1$ + StatusHandler.log(new Status(IStatus.WARNING, BugzillaCorePlugin.ID_PLUGIN, UNKNOWN_REPOSITORY_ERROR + + body)); StatusHandler.log(new Status(IStatus.WARNING, BugzillaCorePlugin.ID_PLUGIN, builder.toString())); } RepositoryStatus status = RepositoryStatus.createHtmlStatus(repositoryUrl.toString(), IStatus.INFO, - BugzillaCorePlugin.ID_PLUGIN, RepositoryStatus.ERROR_REPOSITORY, - "An unkown repository error has occurred.", body); //$NON-NLS-1$ + BugzillaCorePlugin.ID_PLUGIN, RepositoryStatus.ERROR_REPOSITORY, UNKNOWN_REPOSITORY_ERROR, body); throw new CoreException(status); |