Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-05-07 16:07:07 +0000
committerSteffen Pingel2013-05-11 21:44:48 +0000
commit0e97d57993310654f6dd10c6a054fbaebcc3589e (patch)
treeffedda8ea3edbaf1bdd1097b450c98a95410cbc9 /org.eclipse.mylyn.bugzilla.ui
parent20e8aaf07ff15718cd47180630614e240b687a83 (diff)
downloadorg.eclipse.mylyn.tasks-0e97d57993310654f6dd10c6a054fbaebcc3589e.tar.gz
org.eclipse.mylyn.tasks-0e97d57993310654f6dd10c6a054fbaebcc3589e.tar.xz
org.eclipse.mylyn.tasks-0e97d57993310654f6dd10c6a054fbaebcc3589e.zip
278474: do not access keyring when opening Bugzilla editor
Change-Id: I6d1d1bff9e65246e96e9db7f47b9362701da4d7b Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=278474
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-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 a2a86762f..9323d6982 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,

Back to the top