Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 239222 - [net] Proxy Authentication is not working
Summary: [net] Proxy Authentication is not working
Status: RESOLVED INVALID
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-02 07:36 EDT by Anirban Dutta Choudhury CLA
Modified: 2008-08-11 14:00 EDT (History)
11 users (show)

See Also:


Attachments
screenshot of the proxy authentication window which is coming back. (95.87 KB, image/png)
2008-07-02 07:36 EDT, Anirban Dutta Choudhury CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anirban Dutta Choudhury CLA 2008-07-02 07:36:28 EDT
Created attachment 106300 [details]
screenshot of the proxy authentication window which is coming back.

Build ID: I20080617-2000

Steps To Reproduce:
1. Eclipse SDK Version: 3.4.0 downloaded in Ubuntu Gutsy
2. Working under a proxy
3. Trying to update thru' Help -> Software Updates


More information:
1. The proxy username and password is coming back even after typing the user name and password. And finally its not connecting.
2. No other version of ecipse is installed in the system.
3. no problem with proxy as the other application are getting connected to the internet perfectly.
4. Also tried the version latest in Synaptic but in vain.
Comment 1 John Arthorne CLA 2008-07-02 12:27:44 EDT
Can you give details on how you have configured Eclipse to use proxies on the General > Network Connections preference page?  Are you using system proxy settings, or are you setting the proxy information inside Eclipse?
Comment 2 Scott Lewis CLA 2008-07-02 13:14:17 EDT
(In reply to comment #1)
> Can you give details on how you have configured Eclipse to use proxies on the
> General > Network Connections preference page?  Are you using system proxy
> settings, or are you setting the proxy information inside Eclipse?
> 

An additional question:  can you use Eclipse 3.3's install/update with your proxy configuration?  If so, would you describe the configuration (i.e. where/how your username and password are specified) that works for Eclipse 3.3?

Comment 3 Anirban Dutta Choudhury CLA 2008-07-03 04:10:46 EDT
(In reply to comment #0)
> Created an attachment (id=106300) [details]
> screenshot of the proxy authentication window which is coming back.
> 
> Build ID: I20080617-2000
> 
> Steps To Reproduce:
> 1. Eclipse SDK Version: 3.4.0 downloaded in Ubuntu Gutsy
> 2. Working under a proxy
> 3. Trying to update thru' Help -> Software Updates
> 
> 
> More information:
> 1. The proxy username and password is coming back even after typing the user
> name and password. And finally its not connecting.
> 2. No other version of ecipse is installed in the system.
> 3. no problem with proxy as the other application are getting connected to the
> internet perfectly.
> 4. Also tried the version latest in Synaptic but in vain.
> 

(In reply to comment #1)
> Can you give details on how you have configured Eclipse to use proxies on the
> General > Network Connections preference page?  Are you using system proxy
> settings, or are you setting the proxy information inside Eclipse?
> 

I have put the HTTP proxy name and port and then I ticked the "enable proxy authentication" button and the supplied the proxy username and password. 

I also tried to work with the System Proxy Configuration and when I do that, a login window pops up everytime I try to update. But the username and password are not accepted and the login window comes back again and again.
Comment 4 Anirban Dutta Choudhury CLA 2008-07-03 04:18:23 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > Can you give details on how you have configured Eclipse to use proxies on the
> > General > Network Connections preference page?  Are you using system proxy
> > settings, or are you setting the proxy information inside Eclipse?
> > 
> 
> An additional question:  can you use Eclipse 3.3's install/update with your
> proxy configuration?  If so, would you describe the configuration (i.e.
> where/how your username and password are specified) that works for Eclipse 3.3?
> 

No version of eclipse I tried so far is able to get thru' this proxy authentication problem .. I tried the latest one (where I have to download and store in a local folder the eclipse directory in ubuntu).. and also I tried the Synaptic version (which is version 3.2.2) - where eclipse get installed in the system folders instead of home folder ..

I supplied this information 'coz I had a thought that may be it's trying to connect internet so it needs the root/su login .. but in vain!

Another info: while goin thri internet, I found other users reporting the same problem .. e.g. http://www.eclipsezone.com/eclipse/forums/t98845.html represents exactly the same problem with eclipse 3.3 though the solution provided did not come handy.
Comment 5 Pascal Rapicault CLA 2008-07-03 16:06:46 EDT
Stefan, I recall that you had access to some setup where proxy authentication was required. Do you still have access to those? Would you be able to help diagnose what is going on here? 
Comment 6 Scott Lewis CLA 2008-07-03 17:25:17 EDT
(In reply to comment #4)

First, thanks Anirban for the information about your proxy configuration.

<stuff deleted>
> > An additional question:  can you use Eclipse 3.3's install/update with your
> > proxy configuration?  If so, would you describe the configuration (i.e.
> > where/how your username and password are specified) that works for Eclipse 3.3?
> > 
> 
> No version of eclipse I tried so far is able to get thru' this proxy
> authentication problem .. 


Do you happen to know of *any* JRE-based application (i.e. one that uses the some version of the Java virtual machine) that is able to work (to retrieve some URL-based resource) with this proxy configuration?  If so, could you report it here (along with info about the JRE vendor/version, and how the proxy, username/password info is provided to the application?)

Again, thanks.
Comment 7 Anirban Dutta Choudhury CLA 2008-07-04 03:46:40 EDT
(In reply to comment #6)
I think you may have narrowed down the problem .. Yes I know JRE running under the proxy and being able to connec to internet  .. firefox is working .. I have tested java in firefox .. 

But in the configuration, for the 1st website (check the list below) along with login and password I also have to specify the domain name .. Without which the test fails ..

I used the following website to check the java compatibility :
http://www.javatester.org/enabled.html
http://conceptualeclipse.googlepages.com/pressuresimulation
http://www.java.com/en/download/help/testvm.xml
http://www.java.com/en/download/installed.jsp

The version I'm using is SUN java 1.6.0_03 (though the latest version is the _06 update, could it be problem ? .. eclipse website doesn't say so ..)

Let me know what do you think ..

> 
> Do you happen to know of *any* JRE-based application (i.e. one that uses the
> some version of the Java virtual machine) that is able to work (to retrieve
> some URL-based resource) with this proxy configuration?  If so, could you
> report it here (along with info about the JRE vendor/version, and how the
> proxy, username/password info is provided to the application?)
> 
> Again, thanks.
> 

Comment 8 Stefan Liebig CLA 2008-07-04 05:24:13 EDT
I have access to a machine that is behind a proxy (squid3) that uses NTLM.
The machine runs WinXP Pro and the jre used has the version 1.6.0_03.

I tried to access the internet with both Eclipse (Software Update, CVS) and jEdit
for consistency checks.
For both Eclipse and jEdit I have never been asked to enter a userid and password
for proxy authentication. I just entered the proxies name and port for manual proxy
configuration. It even worked with ´use system proxy configuration´ enabled.
In Eclipse it worked with and without enabling proxy authentication. It worked
even with wrong userids and passwords entered in the preferences for both
Eclipse and jEdit.

I think that Sun´s jvm first attempts to use NTLM authentication by trying
to get this information in an OS specific way and if that fails it requests
that information from the user.

Anything I can do?
Comment 9 Pascal Rapicault CLA 2008-07-04 08:54:14 EDT
I see that other people cc'ed themselves to the bug recently (e.g. Pierre and Benjamin). Are you cc'ed because you are curious or because you are encountering the same problem? If you see the "same" problem a detailed description of your setup would be really helpful.

Stefan, would you have access to a similar environment from a Linux box? The problem maybe linux specific. Also could you write a small test app (based on p2 code) that would try connecting on a file at the foundation (e.g. content.jar on ganymede) and would help us diagnose what is wrong.

Anirban, could you provide us with more details about your proxy setup?
Comment 10 Pierre Gaufillet CLA 2008-07-04 09:03:50 EDT
Hi Pascal,

using our Linux platforms (redhat EL4 and a sun jvm 1.5.0_15), we are not able to connect to any external repository through our firewall / proxies. We also have this problem with Eclipse 3.3 (seen on windows 2000, linux rhel4 and solaris 8 with a sun jvm 1.5.0_12).

I will send technical details a little later.

Pierre
Comment 11 Pascal Rapicault CLA 2008-07-04 09:19:00 EDT
Thx Pierre. Also if you have the possibility to test from a windows box that would be great.
Comment 12 Pierre Gaufillet CLA 2008-07-04 09:35:59 EDT
Here is the error I got when trying to connect to Ganymede repository :

no repository found at http://download.eclipse.org/releases/ganymede
 Error reading update site http://download.eclipse.org/releases/ganymede.
 Server redirected too many times (20).

Of course, I configured with the usual information the http proxy preferences in the network page.

I will give a try with a Windows box on monday.
Comment 13 Anirban Dutta Choudhury CLA 2008-07-04 13:12:03 EDT
(In reply to comment #9)
> I see that other people cc'ed themselves to the bug recently (e.g. Pierre and
> Benjamin). Are you cc'ed because you are curious or because you are
> encountering the same problem? If you see the "same" problem a detailed
> description of your setup would be really helpful.
> 
> Stefan, would you have access to a similar environment from a Linux box? The
> problem maybe linux specific. Also could you write a small test app (based on
> p2 code) that would try connecting on a file at the foundation (e.g.
> content.jar on ganymede) and would help us diagnose what is wrong.
> 
> Anirban, could you provide us with more details about your proxy setup?
> 

It would have been easier if you had specified what exactly do you mean by "details" .. well, there is a user name, password and domain name. I don't need the domain name necessarily for connecting to the internet, but some applications need it(like I already mentioned). But all the Ubuntu applications are running.

Probably one solution rather work-around could be if there is anyway to set the proxy globally for ubuntu and then use the normal connection ..
Comment 14 Pascal Rapicault CLA 2008-07-04 13:39:23 EDT
By details, I mean anything that can help us figure out what the problem is :). But more specifically, do you know which proxy software is being used and also how it is configured, and where the information is obtained from. 
Also would you have access to a windows box where you can try to see if the same problem occurs.
Comment 15 Stefan Liebig CLA 2008-07-07 02:39:20 EDT
(In reply to comment 9)

Pascal, I found a Linux machine with Ubuntu 7.04 and jre 1.6.0_02 and squid3 proxy with NTLM support.
Passing the proxy worked when I entered the userid with the domain, e.g. domain\sli. With that provisioning/updating/downloading works.
If the proxy userdid/password is not given within the preferences a dialog pops up requesting userid/password until you enter the correct userid/password or give up. That is ok. But if you enter a wrong userid/password within the preferences nothing happens when you try to provision. There is no error message/dialog and no entry within the error log.
Comment 16 Anirban Dutta Choudhury CLA 2008-07-07 03:44:08 EDT
(In reply to comment #15)
> (In reply to comment 9)
> 
> Pascal, I found a Linux machine with Ubuntu 7.04 and jre 1.6.0_02 and squid3
> proxy with NTLM support.
> Passing the proxy worked when I entered the userid with the domain, e.g.
> domain\sli. With that provisioning/updating/downloading works.
> If the proxy userdid/password is not given within the preferences a dialog pops
> up requesting userid/password until you enter the correct userid/password or
> give up. That is ok. But if you enter a wrong userid/password within the
> preferences nothing happens when you try to provision. There is no error
> message/dialog and no entry within the error log.
> 

Thanks .. Worked like a charm ! .. "domain\proxy_login" is the catch .. for other software (e.g. firefix, synaptic etc.) domain name was not a necessity .. So I felt no necessity to supply it ...

And for the previous question, I'm also using NTLM ..
Comment 17 Pierre Gaufillet CLA 2008-07-07 03:58:20 EDT
Still does not work for me on our Linux machines...

Comment 18 Stefan Liebig CLA 2008-07-07 04:33:32 EDT
Pierre, do you know which proxy you have and if it supports NTLM?
And as Pascal already asked, does it work from a Windows box?
Comment 19 Pierre Gaufillet CLA 2008-07-07 04:44:51 EDT
Yes, it works from a windows box. With and without userid/password in the preference page.

I check regarding the proxy type.
Comment 20 Pascal Rapicault CLA 2008-07-07 07:45:28 EDT
Reopening because not everybody is in a working state, and there maybe things to do to make it easy for ppl to use.
Comment 21 Jose CHILLAN CLA 2008-07-07 12:03:00 EDT
Hi,

I have the same problem. I am behind a proxy requiring authentication and no
NTLM. 
- When I set up in my Network Connection on "Manual proxy configuration" and I check "Enable proxy Connection" and I define a user name and password, the
"Apply" has no effect. When I reopen the "Preferences" dialog, the option is still checked but the User Name and Password have been lost.

- The first time I need to connection on the internet (Update, download a XML
Schema, ...), a dialog appear TWICE  to ask for user name and password. It is
only when I give twice the good user name and password that Eclipse works
properly, as long as I don't quit. For each launch, I have the same concern
which is a pain (for example, after a feature install...).
This wasn't working in 3.3.2 for different reasons (I checked the code and it
appears that nowhere the user name and password were used for proxy authentication).

Sorry, but anyway, it looks like this functionnality lacks testing.

Comment 22 Scott Lewis CLA 2008-07-07 12:48:07 EDT
(In reply to comment #21)
> Hi,
> 
> I have the same problem. I am behind a proxy requiring authentication and no
> NTLM. 
> - When I set up in my Network Connection on "Manual proxy configuration" and I
> check "Enable proxy Connection" and I define a user name and password, the
> "Apply" has no effect. When I reopen the "Preferences" dialog, the option is
> still checked but the User Name and Password have been lost.


Jose a question:  Do the preferences get lost/not saved even when you simply close the preferences dialog and then immediately reopen?  (I know this is what you say above, but I want to verify that you don't exit Eclipse session before Preferences reopen).

What OS is this on (the Eclipse/client process)?  Are others seeing this as well?  On all OSes?  


Comment 23 Ed Willink CLA 2008-07-10 02:07:33 EDT
I have just reported something rather similar for CVS under Windows as bug 240270 since bug 235661 addressing the CVS issue had been 'resolved' in RC4.
Comment 24 Anirban Dutta Choudhury CLA 2008-07-22 12:19:36 EDT
the initial bug I reported was solved using the domain name in front of the user name ..
Comment 25 John Arthorne CLA 2008-08-11 14:00:29 EDT
Changing resolution because no change was made in p2.