Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-08-25 18:44:47 +0000
committerJohn Arthorne2008-08-25 18:44:47 +0000
commit087689b72ad2363647b943055fa8d71804f75f2f (patch)
tree6e8c772f27c582df86b851e898c20a36ff4473da
parent29308caba0a7dc2faaaeb0bb16f5bd19cb339e32 (diff)
downloadrt.equinox.p2-087689b72ad2363647b943055fa8d71804f75f2f.tar.gz
rt.equinox.p2-087689b72ad2363647b943055fa8d71804f75f2f.tar.xz
rt.equinox.p2-087689b72ad2363647b943055fa8d71804f75f2f.zip
Bug 121201 poor performance behind proxy/firewall
-rw-r--r--bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/helpers/URLUtil.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/helpers/URLUtil.java b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/helpers/URLUtil.java
index 4074d9e5b..a03abb33a 100644
--- a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/helpers/URLUtil.java
+++ b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/helpers/URLUtil.java
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * compeople AG (Stefan Liebig) - Fix for bug 121201 - Poor performance behind proxy/firewall
*******************************************************************************/
package org.eclipse.equinox.internal.p2.core.helpers;
@@ -27,8 +28,12 @@ public class URLUtil {
return true;
if (url1 == null || url2 == null)
return false;
- if (url1.equals(url2))
- return true;
+ try {
+ if (toURI(url1).equals(toURI(url2)))
+ return true;
+ } catch (URISyntaxException e) {
+ //fall through below
+ }
// check if we have two local file references that are case variants
File file1 = toFile(url1);

Back to the top