Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Cannot save proxy authentication details
Cannot save proxy authentication details [message #336357] Tue, 09 June 2009 15:30 Go to next message
Ben Turner is currently offline Ben TurnerFriend
Messages: 7
Registered: July 2009
Junior Member
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.

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: Cannot save proxy authentication details [message #653255 is a reply to message #336357] Wed, 09 February 2011 02:52 Go to previous messageGo to next message
Jamie Burns is currently offline Jamie BurnsFriend
Messages: 1
Registered: February 2011
Junior Member
Ive got this working by changing the location of the secure storage.

In my case, the default location for the secure storage was in a directory my user account didnt have access to. I changed the location by adding an -eclipse.keyring property to eclipse.ini

...
-eclipse.keyring
c:\users\<userid>\.eclipse\secure.storage
...

You can find the current storage location in Preferences -> General -> Security -> Secure Storage -> Contents. The location is under the Storage location heading at the bottom of the panel
Re: Cannot save proxy authentication details [message #713928 is a reply to message #653255] Tue, 09 August 2011 12:15 Go to previous messageGo to next message
Deepak  is currently offline Deepak Friend
Messages: 1
Registered: August 2011
Junior Member
Even after trying to change the location of secure storage location, still it's giving same error. I am using eclipse 3.7.
Re: Cannot save proxy authentication details [message #732345 is a reply to message #336357] Tue, 04 October 2011 14:47 Go to previous message
Nishanth  is currently offline Nishanth Friend
Messages: 1
Registered: October 2011
Junior Member
I faced the same problem, the way I fixed this is:

I enabled secure storage and entered a Master password temporarily, then stored my proxy password.

after saving my preferences and clicking ok, I removed my master password and it proxy password is still saved.

hope this helps.
Previous Topic:How to create Eclipse like Welcome Page
Next Topic:Common Navigator Framework - Trigger refresh
Goto Forum:
  


Current Time: Thu Nov 14 09:08:29 GMT 2024

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

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

Back to the top