Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-11-14 23:17:57 -0500
committermkersten2005-11-14 23:17:57 -0500
commitb4016faeda6bdf1004a5730c560c199d84b4b51f (patch)
tree186f92de0ce682906e54b1f8b460834df64e9fbd
parente1b51c7b224a2344dcb83507d2ee4a927bbc2f3a (diff)
downloadorg.eclipse.mylyn.tasks-b4016faeda6bdf1004a5730c560c199d84b4b51f.tar.gz
org.eclipse.mylyn.tasks-b4016faeda6bdf1004a5730c560c199d84b4b51f.tar.xz
org.eclipse.mylyn.tasks-b4016faeda6bdf1004a5730c560c199d84b4b51f.zip
Progress on: Bug 113564: Bugzilla provider does not work from behind firewall
Issue URL:
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugzillaPlugin.java6
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/internal/BugParser.java5
2 files changed, 7 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugzillaPlugin.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugzillaPlugin.java
index 673788d18..a50ad4112 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugzillaPlugin.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugzillaPlugin.java
@@ -327,15 +327,15 @@ public class BugzillaPlugin extends AbstractUIPlugin {
ctx.init(null, tm, null);
HttpsURLConnection.setDefaultSSLSocketFactory(ctx.getSocketFactory());
- Proxy p = Proxy.NO_PROXY;
+ Proxy proxy = Proxy.NO_PROXY;
if (UpdateCore.getPlugin().getPluginPreferences().getBoolean(UpdateCore.HTTP_PROXY_ENABLE)) {
String proxyHost = UpdateCore.getPlugin().getPluginPreferences().getString(UpdateCore.HTTP_PROXY_HOST);
int proxyPort = UpdateCore.getPlugin().getPluginPreferences().getInt(UpdateCore.HTTP_PROXY_PORT);
InetSocketAddress sockAddr = new InetSocketAddress(proxyHost, proxyPort);
- p = new Proxy(Type.HTTP, sockAddr);
+ proxy = new Proxy(Type.HTTP, sockAddr);
}
- URLConnection cntx = url.openConnection(p);
+ URLConnection cntx = url.openConnection(proxy);
return cntx;
}
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/internal/BugParser.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/internal/BugParser.java
index dbcaf77c3..999373c87 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/internal/BugParser.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/internal/BugParser.java
@@ -15,6 +15,7 @@ import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
+import java.net.URLConnection;
import java.net.URLEncoder;
import java.text.ParseException;
import java.text.SimpleDateFormat;
@@ -322,7 +323,9 @@ public class BugParser
}
// connect to the bugzilla server to get the keyword list
- input = new BufferedReader(new InputStreamReader(new URL(BugzillaRepository.getURL() + "/" + keywordsUrl+urlText).openStream()));
+ URL url = new URL(BugzillaRepository.getURL() + "/" + keywordsUrl+urlText);
+ URLConnection urlConnection = BugzillaPlugin.getDefault().getUrlConnection(url);
+ input = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
// parse the valid keywords and add them to the bug
List<String> keywords = new KeywordParser(input).getKeywords();

Back to the top