Community
Participate
Working Groups
Build ID: I20071213-1700 Steps To Reproduce: 1. Open the Network Connections 2. Clear the HTTP Proxy, enter "socks.whatever.com" and a port as SOCKS proxy 3. Enable "Enable proxy authentication" 4. Enter as Username "User" and "Password" as password :-) 5. Click Apply & OK 6. Reopen the preference page 7. Expected: "Enable proxy authentication" enabled BUG: is disabled 8. also user and password fields are empty More information: The bug is in ProxyPreferencePage, initializeValues function. There this code snippet: **************************************************************************** IProxyData data = entryList[0].getProxy(); this.enableProxyAuth.setSelection(data.isRequiresAuthentication()); **************************************************************************** It only checks the first's entry, the HTTP protocol. As I was just trying to use eclipses cvs socks proxy support, I did not enter anything in there. Here's the same snippet fixed (sorry, I know, it's not a patch, I don't have the cvs sources right now) **************************************************************************** // use the first entry which does need authentication IProxyData data = null; for (int i = 0; i < entryList.length; i++) { IProxyData idata = entryList[i].getProxy(); if (idata.isRequiresAuthentication()) { data = idata; break; } } if (data == null) { // no entry needs authentication, just pick the first. data = entryList[0].getProxy(); } this.enableProxyAuth.setSelection(data.isRequiresAuthentication()); **************************************************************************** Workarounds: enter a http proxy. Or reenter the user id and the password every time that pref is shown.
Created attachment 86106 [details] Daniel's fix as a patch
Released to HEAD. Thanks Daniel!
Verified in I20080205-0010.