Community
Participate
Working Groups
Build ID: I20070625-1500 I set the proxy configuration since I wanted to install and update eclipse itself and several eclipse plugins. But during continous work with eclipse it prompts for the proxy login and password even if a never clicked on install/update. This interrupts my work and disturbs seriously.
I recognised that the prompt appears after I pressed Strg + Space for the code completition.
This could be caused when we are looking up for the javadoc.
Yes, if there is no source attached and an URL configured for Javadoc then we will open a connection to that URL. What password for what? How many times does it ask? Can you attach a screen shot?
Created attachment 102308 [details] completion.jpg
Now I found a reproducable procedure: The Proxy is set acoording to proxySettings.jpg. The prompt appears even if I set username and password there. 1. Enter 'Mem' and press Strg+Space for Word-Completion. 2. For a very short moment the correct list of completions is shown, but then the prompt for entering username and password for the http proxy appears (see prompt.jpg) 3. After entering username and password it works properly and the completion can be used correctly after pressing Strg+Space again (see completion.jpg) There are no URLs to any javadoc set. For some of the classes in the completion list there is source attached.
Created attachment 102309 [details] prompt.jpg
Created attachment 102310 [details] proxySettings.jpg
But you are only asked once, right?
(In reply to comment #8) > But you are only asked once, right? > I'm asked since I once enter my correct username and password
Sorry, I don't quite understand your last answer.
(In reply to comment #10) > Sorry, I don't quite understand your last answer. > The prompt appears as long as I do not enter the correct login. If I cancel the prompt it would appear again (at Strg+Space) and I would never be able to use word completion. If I enter the correct login the prompt does not appear for the current Eclipse session and I can use word completion. To my mind the prompt should never appear if I configured the proxy settings correctly with username and password, like I did.
You'll get this prompt if there is a URL.openStream on a site that requires authenticated login. This comes from the java.net.Authenticator hook added by org.eclipse.ui.net. Is there any way the user can configure it to not look for javadoc, or to configure where javadoc comes from?
>You'll get this prompt if there is a URL.openStream on a site that requires >authenticated login. Why? Shouldn't it take the user and password from the preference? Moving to UI. >Is there any way the user can configure it to not look for >javadoc, or to configure where javadoc comes from? Yes, on each JAR you can configure source and Javadoc locations.
Bug 229374 covers using secure storage to store/retrieve authenticated login details. I think this bug can be closed as "working as designed". Martin, you must have a JAR in your workspace that has a javadoc or source location set to a URL that requires authenticated login.
John, I think Martin's problem is that he has defined a proxy via Eclipse settings and he gave the user and password there. But at the time the proxy is needed we ask for the password instead of using the information provided in the preferences.
Ok, I'm not familiar with how that proxy login information is used. Moving to Team for comment.
(In reply to comment #14) > Bug 229374 covers using secure storage to store/retrieve authenticated login > details. I think this bug can be closed as "working as designed". Martin, you > must have a JAR in your workspace that has a javadoc or source location set to > a URL that requires authenticated login. Unfortunately not. All references to source or javadoc in my classpath are set relatively to one project in the eclipse workspace, locally on the harddrive. May there be other references from other external libraries to www urls?
Does the javadoc support use java's URL support to retrieve the javadoc? If so, then you will be prompted once per session. The reason is that the Java support for authentication does not differentiate a failed login from an initial login attempt so clients have now way of knowing whether they can supply cached information or if new information is required. The Authenticator registered by the Net plug-in could be smarter and supply the cached information the first time it is called and prompt if it is asked again. This makes the assumption that the Java URL support caches the password once it gets it which seems to be the case but is not documented as part of the API.
>May there be other references from other external libraries to www urls? Are you sure rt.jar for example has source and/or Javadoc locally? >so clients have now way of knowing whether they can supply cached >information or if new information is required. Why cached? I would expect that for the first try the password from the prefs is used and that this just works. Of course if the pw is wrong then a dialog is needed. >Does the javadoc support use java's URL support to retrieve the javadoc? Adding Olivier who implemented this in JDT Core land.
(In reply to comment #19) > >May there be other references from other external libraries to www urls? > Are you sure rt.jar for example has source and/or Javadoc locally? > >so clients have now way of knowing whether they can supply cached > >information or if new information is required. > Why cached? I would expect that for the first try the password from the prefs > is used and that this just works. Of course if the pw is wrong then a dialog is > needed. > >Does the javadoc support use java's URL support to retrieve the javadoc? > Adding Olivier who implemented this in JDT Core land. You were right, the packages from the choosen JRE have had javadoc attached. I removed it now it works. But I'd like to raise this behaviour as improvement: If I set my proxy settings properly the word completion should not prompt for username and password again.
*** Bug 247279 has been marked as a duplicate of this bug. ***
the authentication for the proxy is asked every time even for regular updates; see 247279 I hardly can find a case where the information in the preferences is used; looks like a real bug in the handling of a proxy just to make that clear: we are talking about authentication to my local proxy and not about authentication to a remote server, right?
*** Bug 252056 has been marked as a duplicate of this bug. ***
(In reply to comment #22) > the authentication for the proxy is asked every time even for regular updates; > see 247279 > > I hardly can find a case where the information in the preferences is used; > looks like a real bug in the handling of a proxy > > just to make that clear: we are talking about authentication to my local proxy > and not about authentication to a remote server, right? > Yes, it's the local proxy of our business site. It would be great of you could solve this bug soon, since typing the proxy authentication after each start of eclipse twice is very unhandy.
I checked it again in 20090619-0625. Works good, if you use Manual Proxy Settings. THX
(In reply to comment #25) > I checked it again in 20090619-0625. Works good, if you use Manual Proxy > Settings. > THX I just downloaded and installed Helios. Unfortunately I found another procedure which does not work: - Start Eclipse - Mouse over e.g. import java.io.File - Proxy Authentication appears Seems as if the hovers do not use the proxy settings either. By the way, the content assist does not work either, this bug is still not solved. The Eclipse Preferences should be used for all Internet access: - Javadoc - Hovers - Content Assist Please fix this soon, I'm going crazy with this. THX
This is tracked on bug 312228. Marking as a duplicate of a bug with higher number since the code chages are discussed there. *** This bug has been marked as a duplicate of bug 312228 ***