summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-05-07 12:07:07 (EDT)
committerSteffen Pingel2013-05-11 17:44:48 (EDT)
commit0e97d57993310654f6dd10c6a054fbaebcc3589e (patch)
treeffedda8ea3edbaf1bdd1097b450c98a95410cbc9
parent20e8aaf07ff15718cd47180630614e240b687a83 (diff)
downloadorg.eclipse.mylyn.tasks-0e97d57993310654f6dd10c6a054fbaebcc3589e.zip
org.eclipse.mylyn.tasks-0e97d57993310654f6dd10c6a054fbaebcc3589e.tar.gz
org.eclipse.mylyn.tasks-0e97d57993310654f6dd10c6a054fbaebcc3589e.tar.bz2
278474: do not access keyring when opening Bugzilla editorrefs/changes/84/12584/2
Change-Id: I6d1d1bff9e65246e96e9db7f47b9362701da4d7b Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=278474
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
index a2a8676..9323d69 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
@@ -27,8 +27,6 @@ import org.eclipse.jface.fieldassist.ControlDecoration;
import org.eclipse.jface.fieldassist.FieldDecoration;
import org.eclipse.jface.fieldassist.FieldDecorationRegistry;
import org.eclipse.mylyn.commons.core.StatusHandler;
-import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
-import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.commons.workbench.WorkbenchUtil;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
@@ -606,8 +604,8 @@ public class BugzillaTaskEditorPage extends AbstractTaskEditorPage {
private boolean checkCanSubmit(final int type) {
final TaskRepository taskRepository = getModel().getTaskRepository();
- AuthenticationCredentials cred = taskRepository.getCredentials(AuthenticationType.REPOSITORY);
- if (cred == null || cred.getUserName() == null || cred.getUserName().equals("")) { //$NON-NLS-1$
+ String username = taskRepository.getUserName();
+ if (username == null || username.length() == 0) {
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void run() {
getTaskEditor().setMessage(Messages.BugzillaTaskEditorPage_Anonymous_can_not_submit_Tasks, type,