Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-08-17 16:03:51 -0400
committerfbecker2010-08-17 16:03:51 -0400
commita58d1b506e89fe17ec9c3e3e884d1764f2bff220 (patch)
tree1fa701bfc89bd0e49d72b5fec9838cd8f2451838
parenteaf1369ba56f57e78064bc446c2ca3ba2cdca52b (diff)
downloadorg.eclipse.mylyn.tasks-a58d1b506e89fe17ec9c3e3e884d1764f2bff220.tar.gz
org.eclipse.mylyn.tasks-a58d1b506e89fe17ec9c3e3e884d1764f2bff220.tar.xz
org.eclipse.mylyn.tasks-a58d1b506e89fe17ec9c3e3e884d1764f2bff220.zip
NEW - bug 320042: improve handling of error Unknown code: 99
https://bugs.eclipse.org/bugs/show_bug.cgi?id=320042
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java3
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaStatus.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/Messages.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/messages.properties1
4 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 ffbc2c82d..5a0540266 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
@@ -1788,7 +1788,8 @@ public class BugzillaClient {
found = title.indexOf(value) != -1;
if (found) {
throw new CoreException(new BugzillaStatus(IStatus.ERROR, BugzillaCorePlugin.ID_PLUGIN,
- IBugzillaConstants.REPOSITORY_STATUS_SUSPICIOUS_ACTION));
+ IBugzillaConstants.REPOSITORY_STATUS_SUSPICIOUS_ACTION,
+ repositoryUrl.toString()));
}
}
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaStatus.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaStatus.java
index c211d87d2..240d80fc3 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaStatus.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaStatus.java
@@ -81,6 +81,8 @@ public class BugzillaStatus extends Status {
return NLS.bind(Messages.BugzillaStatus_operationCancelled, this.errorMessage);
case RepositoryStatus.REPOSITORY_COLLISION:
return NLS.bind(Messages.BugzillaStatus_repositoryCollision, this.errorMessage);
+ case IBugzillaConstants.REPOSITORY_STATUS_SUSPICIOUS_ACTION:
+ return NLS.bind(Messages.BugzillaStatus_suspiciousAction, this.errorMessage);
case RepositoryStatus.REPOSITORY_COMMENT_REQUIRED:
if (errorMessage == null) {
return Messages.BugzillaStatus_repositoryCommentRequired;
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/Messages.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/Messages.java
index dd8e26f9f..4e7250bc5 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/Messages.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/Messages.java
@@ -277,6 +277,8 @@ public class Messages extends NLS {
public static String BugzillaStatus_repositoryCollision;
+ public static String BugzillaStatus_suspiciousAction;
+
public static String BugzillaStatus_operationCancelled;
public static String BugzillaStatus_errorIo;
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/messages.properties b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/messages.properties
index 0e0fb13e3..15c08ccc6 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/messages.properties
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/messages.properties
@@ -144,6 +144,7 @@ BugzillaStatus_repositoryLoginFailure = Unable to login to {0}.\n\n{1}\n\nPlease
BugzillaStatus_repositoryNotFound = Repository {0} could not be found.
BugzillaStatus_repositoryCommentRequired = You have to specify a new comment when making this change. Please comment on the reason for this change.
BugzillaStatus_repositoryCollision = Mid-air collision occurred while submitting to {0}. Synchronize task and re-submit changes.
+BugzillaStatus_suspiciousAction = Security token error occurred during submission to {0}. Synchronize task and re-submit changes.
### repositoryUrl, class.simpleName, class.getMessage
BugzillaStatus_errorIo = I/O Error occurred while communicating with {0}.\n\n{1}: {2}
BugzillaStatus_errorInternal = An internal error has occurred: {0}

Back to the top