Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2009-02-18 03:30:43 +0000
committerrelves2009-02-18 03:30:43 +0000
commit15888006a881ec3ac668e2b7af1fe4da60f873cd (patch)
treefa477d9e2408f245991bab4629db1f48a6e66dda
parentf046cd282cd0d10e39c2a956e3f3a312a12f8ece (diff)
downloadorg.eclipse.mylyn.tasks-15888006a881ec3ac668e2b7af1fe4da60f873cd.tar.gz
org.eclipse.mylyn.tasks-15888006a881ec3ac668e2b7af1fe4da60f873cd.tar.xz
org.eclipse.mylyn.tasks-15888006a881ec3ac668e2b7af1fe4da60f873cd.zip
NEW - bug 263318: [m3.0.5] Fix for Bugzilla (BMO) bug 26257 Breaks Mylyn
https://bugs.eclipse.org/bugs/show_bug.cgi?id=263318
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/IBugzillaConstants.java2
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryStatus.java2
4 files changed, 4 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 3977ef9da..2fbfb6cc9 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
@@ -1545,7 +1545,7 @@ public class BugzillaClient {
}
if (found) {
throw new CoreException(new BugzillaStatus(IStatus.ERROR, BugzillaCorePlugin.ID_PLUGIN,
- RepositoryStatus.REPOSITORY_SUSPICIOUS_ACTION));
+ IBugzillaConstants.REPOSITORY_STATUS_SUSPICIOUS_ACTION));
}
found = false;
for (Iterator<String> iterator = bugzillaLanguageSettings.getResponseForCommand(
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
index da5f8c181..1c4b33f9b 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
@@ -369,7 +369,7 @@ public class BugzillaTaskDataHandler extends AbstractTaskDataHandler {
// TODO: Move retry handling into client
if (e.getStatus().getCode() == RepositoryStatus.ERROR_REPOSITORY_LOGIN) {
return client.postTaskData(taskData, monitor);
- } else if (e.getStatus().getCode() == RepositoryStatus.REPOSITORY_SUSPICIOUS_ACTION) {
+ } else if (e.getStatus().getCode() == IBugzillaConstants.REPOSITORY_STATUS_SUSPICIOUS_ACTION) {
taskData.getRoot().removeAttribute(BugzillaAttribute.TOKEN.getKey());
return client.postTaskData(taskData, monitor);
} else {
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/IBugzillaConstants.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/IBugzillaConstants.java
index fcab13ab9..0544d44cb 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/IBugzillaConstants.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/IBugzillaConstants.java
@@ -100,6 +100,8 @@ public interface IBugzillaConstants {
public static final String ENCODING_UTF_8 = "UTF-8"; //$NON-NLS-1$
+ public static final int REPOSITORY_STATUS_SUSPICIOUS_ACTION = 99;
+
/** Supported bugzilla repository versions */
static public enum BugzillaServerVersion {
SERVER_218, SERVER_220, SERVER_222, SERVER_30;
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryStatus.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryStatus.java
index 4767360d4..c08c9480b 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryStatus.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryStatus.java
@@ -47,8 +47,6 @@ public class RepositoryStatus extends Status {
public final static int REPOSITORY_LOGGED_OUT = 10;
- public static final int REPOSITORY_SUSPICIOUS_ACTION = 11;
-
public final static int ERROR_INTERNAL = 7;
private String htmlMessage;

Back to the top