Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2011-02-15 20:07:19 +0000
committerfbecker2011-02-15 20:07:19 +0000
commitfa550852c4ca01606fd4282bb7c6abf7bd617470 (patch)
treec682fde6a5665c38dd5f345112d85f602cf8f4eb /org.eclipse.mylyn.bugzilla.core
parent78ffa1c4fa2df4758a114c7959e2c3de019bc0db (diff)
downloadorg.eclipse.mylyn.tasks-fa550852c4ca01606fd4282bb7c6abf7bd617470.tar.gz
org.eclipse.mylyn.tasks-fa550852c4ca01606fd4282bb7c6abf7bd617470.tar.xz
org.eclipse.mylyn.tasks-fa550852c4ca01606fd4282bb7c6abf7bd617470.zip
ASSIGNED - bug 336423: anonymous bug reporting
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336423 Fix for wrong throw CoreException
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java11
1 files changed, 5 insertions, 6 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 68ef0c503..fbe934ece 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
@@ -1195,12 +1195,9 @@ public class BugzillaClient {
throw e;
}
} catch (CoreException e1) {
- if (e.getStatus().getCode() == RepositoryStatus.ERROR_REPOSITORY_LOGIN) {
- throw e;
- }
+ throw e1;
}
}
- return null;
}
public RepositoryResponse postTaskDataInternal(TaskData taskData, IProgressMonitor monitor) throws IOException,
@@ -1811,7 +1808,8 @@ public class BugzillaClient {
RepositoryStatus.ERROR_INTERNAL,
"Unable to retrieve new task id from: " + title)); //$NON-NLS-1$
throw new CoreException(new BugzillaStatus(IStatus.ERROR, BugzillaCorePlugin.ID_PLUGIN,
- RepositoryStatus.ERROR_INTERNAL, Messages.BugzillaClient_Unable_to_retrieve_new_task));
+ RepositoryStatus.ERROR_INTERNAL,
+ Messages.BugzillaClient_Unable_to_retrieve_new_task));
}
}
@@ -1829,7 +1827,8 @@ public class BugzillaClient {
} else {
throw new CoreException(new BugzillaStatus(IStatus.ERROR,
BugzillaCorePlugin.ID_PLUGIN, RepositoryStatus.ERROR_REPOSITORY_LOGIN,
- repositoryUrl.toString(), Messages.BugzillaClient_anonymous_user_not_allowed));
+ repositoryUrl.toString(),
+ Messages.BugzillaClient_anonymous_user_not_allowed));
}
}
}

Back to the top