Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2006-12-06 21:46:52 +0000
committerrelves2006-12-06 21:46:52 +0000
commitd3fd62220dda3fa80a1d6384aa1d119829bf8a38 (patch)
treebfd81a196fe870de0d5e5b96ea161ccac79a5b68
parentfbe43a9128c6ba2a3b395c0e7149cae5ed8327c8 (diff)
downloadorg.eclipse.mylyn.tasks-d3fd62220dda3fa80a1d6384aa1d119829bf8a38.tar.gz
org.eclipse.mylyn.tasks-d3fd62220dda3fa80a1d6384aa1d119829bf8a38.tar.xz
org.eclipse.mylyn.tasks-d3fd62220dda3fa80a1d6384aa1d119829bf8a38.zip
NEW - bug 165383: Unexpected report submission error when adding a comment to a bugzilla issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=165383
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/IBugzillaConstants.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java16
2 files changed, 9 insertions, 9 deletions
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 f3ba14cee..b421f10af 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
@@ -192,8 +192,6 @@ public interface IBugzillaConstants {
public static final String TITLE_MESSAGE_DIALOG = "Mylar Bugzilla Connector";
- public static final String REPORT_SUBMIT_ERROR = "Report Submission Error";
-
public static final String TITLE_NEW_BUG = "New Bugzilla Report";
public static final String MESSAGE_LOGIN_FAILURE = "Bugzilla login information or repository version incorrect";
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java
index 5557b2450..0fc528b37 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java
@@ -2516,11 +2516,13 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
modifiedTask = handleNewBugPost(event.getJob().getResult().getMessage());
} catch (CoreException e) {
MylarStatusHandler
- .fail(e, "Failed to synchronize new task with repository"
- + ": Changes may not have successfully committed.\n"
- + e.getMessage(), true);
- submitButton.setEnabled(true);
- AbstractRepositoryTaskEditor.this.showBusy(false);
+ .fail(
+ e,
+ "Unable to open newly submitted task. \n\n"
+ + e.getMessage()
+ + "\n\nTry opening task via Navigate > Open Repository Task in menu.\n New task id is "
+ + event.getJob().getResult().getMessage(), true);
+ close();
return;
}
@@ -2606,8 +2608,8 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
protected void handleSubmitError(final IJobChangeEvent event) {
if (event.getJob().getResult().getCode() == Status.INFO) {
- WebBrowserDialog.openAcceptAgreement(this.getSite().getShell(), "Failed to submit to repository", event.getJob().getResult()
- .getMessage(), event.getJob().getResult().getException().getMessage());
+ WebBrowserDialog.openAcceptAgreement(this.getSite().getShell(), "Failed to submit to repository", event
+ .getJob().getResult().getMessage(), event.getJob().getResult().getException().getMessage());
} else if (event.getJob().getResult().getCode() == Status.ERROR) {
MylarStatusHandler.fail(event.getJob().getResult().getException(), "Failed to submit to repository"
+ ": Changes may not have successfully committed.\n" + event.getJob().getResult().getMessage(),

Back to the top