diff options
author | relves | 2009-02-18 03:30:43 +0000 |
---|---|---|
committer | relves | 2009-02-18 03:30:43 +0000 |
commit | 15888006a881ec3ac668e2b7af1fe4da60f873cd (patch) | |
tree | fa477d9e2408f245991bab4629db1f48a6e66dda | |
parent | f046cd282cd0d10e39c2a956e3f3a312a12f8ece (diff) | |
download | org.eclipse.mylyn.tasks-15888006a881ec3ac668e2b7af1fe4da60f873cd.tar.gz org.eclipse.mylyn.tasks-15888006a881ec3ac668e2b7af1fe4da60f873cd.tar.xz org.eclipse.mylyn.tasks-15888006a881ec3ac668e2b7af1fe4da60f873cd.zip |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=263318
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; |