Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2009-10-07 03:48:56 +0000
committerrelves2009-10-07 03:48:56 +0000
commit2da433047e02803224b9f7a9a0867933770cd689 (patch)
tree21630e5ec474eaac3338ffe11339dc2ea0342cb7 /org.eclipse.mylyn.bugzilla.core
parent1dc69b0cdefe4dbe2756a68c8c12eef394ce11d6 (diff)
downloadorg.eclipse.mylyn.tasks-2da433047e02803224b9f7a9a0867933770cd689.tar.gz
org.eclipse.mylyn.tasks-2da433047e02803224b9f7a9a0867933770cd689.tar.xz
org.eclipse.mylyn.tasks-2da433047e02803224b9f7a9a0867933770cd689.zip
NEW - bug 290465: fix Bugzilla test suite
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290465
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java7
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java16
2 files changed, 15 insertions, 8 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 9b39f87b9..093d9ef41 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
@@ -62,6 +62,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.commons.net.AbstractWebLocation;
import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
@@ -1650,9 +1651,11 @@ public class BugzillaClient {
}
}
- throw new CoreException(RepositoryStatus.createHtmlStatus(repositoryUrl.toString(), IStatus.INFO,
+ RepositoryStatus status = RepositoryStatus.createHtmlStatus(repositoryUrl.toString(), IStatus.INFO,
BugzillaCorePlugin.ID_PLUGIN, RepositoryStatus.ERROR_REPOSITORY,
- "A repository error has occurred.", body)); //$NON-NLS-1$
+ "A repository error has occurred.", body); //$NON-NLS-1$
+ StatusHandler.log(status);
+ throw new CoreException(status);
} catch (ParseException e) {
loggedIn = false;
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
index 64b4d0e9d..caeb3e5a3 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
@@ -911,18 +911,22 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
}
}
// Set the OS and the Platform in the taskData
- if (bugzillaOS != null && opSysAttribute != null) {
+ if (bugzillaOS != null && opSysAttribute != null && opSysAttribute.getOption(bugzillaOS) != null) {
opSysAttribute.setValue(bugzillaOS);
- } else if (opSysAttribute != null && opSysAttribute.getOption(OPTION_ALL) != null) {
- opSysAttribute.setValue(OPTION_ALL);
}
- if (bugzillaPlatform != null && platformAttribute != null) {
+ /*else if (opSysAttribute != null && opSysAttribute.getOption(OPTION_ALL) != null) {
+ opSysAttribute.setValue(OPTION_ALL);
+ }*/
+
+ if (bugzillaPlatform != null && platformAttribute != null
+ && platformAttribute.getOption(bugzillaPlatform) != null) {
platformAttribute.setValue(bugzillaPlatform);
- } else if (opSysAttribute != null && platformAttribute != null
+ }
+ /*else if (opSysAttribute != null && platformAttribute != null
&& platformAttribute.getOption(OPTION_ALL) != null) {
opSysAttribute.setValue(OPTION_ALL);
- }
+ }*/
} catch (Exception e) {
StatusHandler.log(new Status(IStatus.ERROR, BugzillaCorePlugin.ID_PLUGIN, "could not set platform options", //$NON-NLS-1$

Back to the top