Skip to main content



      Home
Home » Eclipse Projects » Equinox » Proxy Authenication details not saved
Proxy Authenication details not saved [message #132653] Wed, 10 June 2009 05:38 Go to next message
Eclipse UserFriend
I have a long standing problem with saving my proxy authentication
settings on Eclipse, which I have finally decided to get to the bottom of.
I originally posted this to eclipse.platform yesterday - apologies for the
repeat post here, but hopefully this is a more suitable newsgroup.

On fresh installs of Eclipse 3.4.2 and 3.5-RC3, I have started a brand new
workspace. I did this as starting with an old workspace means that the
Preferences->General->Network Connections menu is pre-populated, and it is
here I am having problems so I wanted a brand new empty menu screen.

Then, on Eclipse 3.4.2, I select "Manual Proxy Configuration" and input my
proxy server. This is fine and if I click "Apply" then "OK" it gets saved
to the ECLIPSE/configuration/.settings/org.eclipse.core.net.prefs file.

But if I tick the "Enable Proxy Authentication" box, and enter any details
into the User Name and Password boxes, these details are never saved. This
appears to have been the case for ages with my old 3.4 installation, and
now is happening on both fresh installs on 3.4.2 and 3.5-RC3 which leads
me to conclude two things:

(a) This is quite unlikely to be a bug with eclipse, as it's a fairly
basic feature that's broken here.
(b) Whatever is causing the problem is probably specific to my
workstation. Maybe some curious security setup.

Unable to find exactly HOW the proxy authentication details are stored by
eclipse (I'm guessing not to a plain text file), I then checked my
workspace .log file, which had the following stack trace :

eclipse.buildId=M20090211-1700
java.version=1.6.0_07
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.core.net 4 0 2009-06-09 16:09:13.200
!MESSAGE No password provided.
!STACK 0
org.eclipse.equinox.security.storage.StorageException: No password
provided.
at
org.eclipse.equinox.internal.security.storage.SecurePreferen cesRoot.getModulePassword(SecurePreferencesRoot.java:292)
at
org.eclipse.equinox.internal.security.storage.SecurePreferen cesRoot.getPassword(SecurePreferencesRoot.java:219)
at
org.eclipse.equinox.internal.security.storage.SecurePreferen ces.put(SecurePreferences.java:224)
at
org.eclipse.equinox.internal.security.storage.SecurePreferen cesWrapper.put(SecurePreferencesWrapper.java:110)
at
org.eclipse.core.internal.net.ProxyType.saveProxyAuth(ProxyT ype.java:508)
at org.eclipse.core.internal.net.ProxyType.setProxyData(ProxyTy pe.java:155)
at
org.eclipse.core.internal.net.ProxyManager.internalSetProxyD ata(ProxyManager.java:193)
at
org.eclipse.core.internal.net.ProxyManager.doSetProxyData(Pr oxyManager.java:181)
at
org.eclipse.core.internal.net.ProxyManager.setProxyData(Prox yManager.java:175)

Can anyone shine any light on this stack trace ? I certainly HAVE provided
a value for "Password" on the Network connections preferences page. So I'm
guessing it's trying to use a password to store the underlying details
somewhere ? But I am stumped as to what context it's looking for a
password. This problem basically stops me from using the upgrade manager -
I used to get it working intermittently, but in recent months it just
fails without prompting me for username or password at all.

Thanks for any advice or assistance,
Ben Turner
Re: Proxy Authenication details not saved [message #132917 is a reply to message #132653] Fri, 12 June 2009 08:41 Go to previous messageGo to next message
Eclipse UserFriend
Ben Turner wrote:

> Can anyone shine any light on this stack trace ? I certainly HAVE
> provided a value for "Password" on the Network connections preferences
> page. So I'm guessing it's trying to use a password to store the
> underlying details somewhere ? But I am stumped as to what context it's
> looking for a password. This problem basically stops me from using the
> upgrade manager - I used to get it working intermittently, but in recent
> months it just fails without prompting me for username or password at all.
>
I am just guessing here - but looks like the issue relates to the
password for the secure keystore used by Eclipse. To verify if the proxy
setup is doing something bad in getting the keystore initialized or if
you have a general problem, you could on a fresh install access
something that requires a password (such as source code repository, a p2
repo) - if that works (password can be saved), then there is indeed
something wrong with how proxy handles the keystore. If this fails the
same way as the keystore, then something is wrong with the keystore setup.

A simple thing to try first is naturally to look under Preferences >
Security and Secure Store and make sure things look ok there.

Regards
- henrik
Re: Proxy Authenication details not saved [message #132943 is a reply to message #132917] Fri, 12 June 2009 09:47 Go to previous message
Eclipse UserFriend
Thanks for the advice, Henrick.

I was able to browse my password store through the eclipse interface, and
it appeared to contain no password for the various proxy authentication
methods (HTTP, HTTPS, SOCKS).

A little more playing around and I found the <USER
HOME>/.eclipse/org.eclipse.equinox.security/secure_storage - which I
removed and then reloaded eclipse. This fixed everything; I could re-enter
all of my passwords and they were correctly saved now.

So somehow I had a problem with the old secure_storage file, related to
that stack trace, which prevented passwords being saved in any version of
eclipse on my workstation - or any other workstation I logged into, given
the <USER HOME> is a roaming directory on our network.

Problem solved - thanks.
Ben
Previous Topic:Re: Migrating a Europa custom installer to Galileo P2
Next Topic:access zip file entry
Goto Forum:
  


Current Time: Mon Jul 14 07:06:13 EDT 2025

Powered by FUDForum. Page generated in 0.19410 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top