Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2012-01-31 21:14:41 +0000
committerFrank Becker2012-01-31 21:14:41 +0000
commit97fa0d622ae5d53c449e4050e453cf44b9ea2597 (patch)
tree20840b6b05ba3921a345d4e97b802dd55d454e8b /org.eclipse.mylyn.bugzilla.core
parent00b12019b22744a0319be904886e0449ca3a89e5 (diff)
downloadorg.eclipse.mylyn.tasks-97fa0d622ae5d53c449e4050e453cf44b9ea2597.tar.gz
org.eclipse.mylyn.tasks-97fa0d622ae5d53c449e4050e453cf44b9ea2597.tar.xz
org.eclipse.mylyn.tasks-97fa0d622ae5d53c449e4050e453cf44b9ea2597.zip
ASSIGNED - bug 356986: [patch] auto detect XML-RPC (was:
IllegalArgumentException when enabling XML-RPC) https://bugs.eclipse.org/bugs/show_bug.cgi?id=356986 Change-Id: Change-Id: I7b5821eaa7e7fc2f16411782398c2304b9c0bb17
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java13
1 files changed, 13 insertions, 0 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 e96d286e3..38fa8495e 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
@@ -248,6 +248,19 @@ public class BugzillaClient {
throw new CoreException(new Status(IStatus.WARNING, BugzillaCorePlugin.ID_PLUGIN,
"XMLRPC user could not login")); //$NON-NLS-1$
}
+ String version = xmlRpcClient.getVersion(monitor);
+ // We only support XMLRPC for Bugzilla >= 3.2
+ // Reason: product.get was new in version 3.2
+ if (version != null) {
+ BugzillaVersion versionToCompare = new BugzillaVersion(version);
+ if (versionToCompare != null) {
+ if (BugzillaVersion.BUGZILLA_3_2.compareTo(versionToCompare) > 0) {
+ throw new CoreException(new Status(IStatus.WARNING, BugzillaCorePlugin.ID_PLUGIN,
+ "XMLRPC need version >= 3.2")); //$NON-NLS-1$
+ }
+ }
+ }
+
} catch (XmlRpcException e) {
throw new CoreException(new Status(IStatus.WARNING, BugzillaCorePlugin.ID_PLUGIN,
"XMLRPC is not installed")); //$NON-NLS-1$

Back to the top