Bug 257420 - [Net] "System proxy configuration" option not working under Vista x64.
Summary: [Net] "System proxy configuration" option not working under Vista x64.
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.4.1   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.5 M6   Edit
Assignee: Pawel Pogorzelski CLA
QA Contact:
URL:
Whiteboard: hasPatch
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-03 14:28 EST by Mark A. Ziesemer CLA
Modified: 2009-06-02 07:00 EDT (History)
4 users (show)

See Also:


Attachments
Patch_v01 (33.34 KB, patch)
2009-03-05 11:34 EST, Pawel Pogorzelski CLA
pawel.pogorzelski1: iplog+
Details | Diff
Recompiled library (43.50 KB, application/x-msdownload)
2009-03-05 11:36 EST, Pawel Pogorzelski CLA
no flags Details
Recompiled library (43.00 KB, application/x-msdownload)
2009-03-06 05:14 EST, Pawel Pogorzelski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark A. Ziesemer CLA 2008-12-03 14:28:17 EST
Build ID: M20080911-1700

Steps To Reproduce:
- Using eclipse-SDK-3.4.1-win32-x86_64.zip and Java 1.6.0_10 64-bit.
- Defined proxy preferences in the Internet Explorer options.
- In Eclipse, Preferences, General, Network Connections, chose "System proxy configuration (if available)".
- Click OK.  Go back to preferences, and notice that the preference is reset to "Direct connection to the Internet".  Restarting Eclipse doesn't help.  Nothing is logged in the Eclipse Error Log.

More information:
While it is labeled as "(if available)", it isn't clear if it is available or not, or whether it is simply "not available" under Vista and/or x64, and whether this is causing the noted behavior.

Is there a list of supported platforms for which the "System proxy configuration" is "available"?

My primary goal is to somehow configure Eclipse to utilize a Proxy Auto Configuration (PAC) file, as I need it to utilize a proxy only for certain hosts - by inclusion, not exclusion.  Using a PAC file will provide the most flexibility to allow for this.

Alternatively, I'm looking at writing my own Eclipse extension to allow for this.  I'm looking at the "org.eclipse.core.net" plugin, but the only extension point I see visible is for an authenticator.

Alternatively, using Java 1.5+, I could just call java.net.ProxySelector.setDefault(...) from an Eclipse extension run at start-up.  However, it seems that any ProxySelector registered here is never being called.
Comment 1 Mark A. Ziesemer CLA 2008-12-03 15:23:42 EST
This appears to be working better under the 32-bit version of Eclipse.

This appears to be making use of some native code, namely "jWinHttp".  Is it possible that this is not being built or otherwise needs to be updated for 64-bit support?

Under 32-bit, I am getting another error when attempting to use a local *.pac file, using a "file://" URI.  It works fine within IE, but Eclipse reports an error:

WinHttp.GetProxyForUrl for pac failed with error 'The URL does not use a recognized protocol' #12006.

(I'll open a separate bug report for the #12006 error once I determine the details.)
Comment 2 Mark A. Ziesemer CLA 2008-12-03 16:00:23 EST
Please just help me understand the status update, assigning to component team.  Is it assumed that only the team components (e.g. CVS) utilize the org.eclipse.core.net plugin?  What about online help and other network functionality?
Comment 3 Oleg Besedin CLA 2008-12-03 16:14:52 EST
I think Platform/Team group supports the functionality behind that preference page.
Comment 4 Mark A. Ziesemer CLA 2008-12-03 17:36:26 EST
Entered bug 257443 for the PAC-specific issues.
Comment 5 Pawel Pogorzelski CLA 2008-12-04 06:01:58 EST
(In reply to comment #0)
> Steps To Reproduce:
> - Using eclipse-SDK-3.4.1-win32-x86_64.zip and Java 1.6.0_10 64-bit.
> - Defined proxy preferences in the Internet Explorer options.
> - In Eclipse, Preferences, General, Network Connections, chose "System proxy
> configuration (if available)".
> - Click OK.  Go back to preferences, and notice that the preference is reset to
> "Direct connection to the Internet".  Restarting Eclipse doesn't help.  Nothing
> is logged in the Eclipse Error Log.

Seems to be related to bug 255981 and its duplicate.

> More information:
> While it is labeled as "(if available)", it isn't clear if it is available or
> not, or whether it is simply "not available" under Vista and/or x64, and
> whether this is causing the noted behavior.

With bug 228739 new UI for proxy support has been introduced. You can download 3.5M3 to test it or have a look at: http://polishineclipse.blogspot.com/2008/11/new-proxy-settings-ui.html

> Is there a list of supported platforms for which the "System proxy
> configuration" is "available"?

There is a native library on Windows that consume IE settings, it is build on 32 bits though. The same is with the native library that extracts settings from GNOME. Third part of platform specific code extracts settings from environment variables on Linux but is written in Java and should run on every Linux.

> Alternatively, using Java 1.5+, I could just call
> java.net.ProxySelector.setDefault(...) from an Eclipse extension run at
> start-up.  However, it seems that any ProxySelector registered here is never
> being called.

ProxySelector is not an option since Eclipse runs on J2SE 1.4.
Comment 6 Mark A. Ziesemer CLA 2008-12-04 09:29:10 EST
> With bug 228739 new UI for proxy support has been introduced. You can download
> 3.5M3 to test it or have a look at:
> http://polishineclipse.blogspot.com/2008/11/new-proxy-settings-ui.html

Thanks for the information.

> ProxySelector is not an option since Eclipse runs on J2SE 1.4.

Agreed and understood.  Was just looking for a workaround, even if it didn't meet the requirements for a real solution.
Comment 7 Pawel Pogorzelski CLA 2009-03-05 11:34:40 EST
Created attachment 127672 [details]
Patch_v01

This is a patch that introduces org.eclipse.core.net.win32.x86_64 fragment providing binaries of jWinHttp-1.0.0.dll for x86_64 architecture.
Comment 8 Pawel Pogorzelski CLA 2009-03-05 11:36:12 EST
Created attachment 127673 [details]
Recompiled library
Comment 9 Szymon Brandys CLA 2009-03-06 04:34:59 EST
Released to HEAD.
Comment 10 Pawel Pogorzelski CLA 2009-03-06 05:14:11 EST
Created attachment 127794 [details]
Recompiled library

Szymon, please replace the binary in the repository. The one attached in comment  8 is broken.
Comment 11 Szymon Brandys CLA 2009-03-06 06:26:40 EST
The lib updated in HEAD.