Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2009-06-09 17:32:57 +0000
committerrelves2009-06-09 17:32:57 +0000
commit923208383dd52a6a2a471e54f8c61dbe09c7d607 (patch)
tree0342240f1dff469feac4454f58c89908aecf8a52 /org.eclipse.mylyn.bugzilla.ui
parent2f2ea45aa209fe7a861da29869f76fddd51da1d1 (diff)
downloadorg.eclipse.mylyn.tasks-923208383dd52a6a2a471e54f8c61dbe09c7d607.tar.gz
org.eclipse.mylyn.tasks-923208383dd52a6a2a471e54f8c61dbe09c7d607.tar.xz
org.eclipse.mylyn.tasks-923208383dd52a6a2a471e54f8c61dbe09c7d607.zip
REOPENED - bug 279493: fix potential infinite loop
https://bugs.eclipse.org/bugs/show_bug.cgi?id=279493
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java26
1 files changed, 5 insertions, 21 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
index d1f7cc5fd..10a1246f5 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
@@ -1055,21 +1055,8 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
if (getTaskRepository() != null) {
updateAttributesFromConfiguration(null);
if (product.getItemCount() == 0) {
- try {
- repositoryConfiguration = BugzillaCorePlugin.getRepositoryConfiguration(
- getTaskRepository(), true, new NullProgressMonitor());
- updateAttributesFromConfiguration(null);
- } catch (final CoreException e1) {
- PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
- public void run() {
- MessageDialog.openError(Display.getDefault().getActiveShell(),
- Messages.BugzillaSearchPage_Bugzilla_Search_Page, MessageFormat.format(
- Messages.BugzillaSearchPage_Unable_to_get_configuration_X,
- Messages.BugzillaSearchPage_Task_Repositories)
- + "\n\n"); //$NON-NLS-1$
- }
- });
- }
+ updateConfiguration(true);
+ updateAttributesFromConfiguration(null);
}
}
if (originalQuery != null) {
@@ -1202,9 +1189,7 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
}
/**
- * Creates the bugzilla query URL start.
- *
- * Example: https://bugs.eclipse.org/bugs/buglist.cgi?
+ * Creates the bugzilla query URL start. Example: https://bugs.eclipse.org/bugs/buglist.cgi?
*/
private StringBuilder getQueryURLStart(TaskRepository repository) {
StringBuilder sb = new StringBuilder(repository.getRepositoryUrl());
@@ -1217,9 +1202,8 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
}
/**
- * Goes through the query form and builds up the query parameters.
- *
- * Example: short_desc_type=substring&short_desc=bla& ... TODO: The encoding here should match
+ * Goes through the query form and builds up the query parameters. Example:
+ * short_desc_type=substring&short_desc=bla& ... TODO: The encoding here should match
* TaskRepository.getCharacterEncoding()
*
* @throws UnsupportedEncodingException

Back to the top