Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318315 - [Net] Trouble with proxy authentication with Linux
Summary: [Net] Trouble with proxy authentication with Linux
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 09:30 EDT by Stefan Mising name CLA
Modified: 2020-05-18 16:45 EDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Mising name CLA 2010-06-29 09:30:35 EDT
Build Identifier: I20100608-0911

I am using the latest version (helios) of eclipse for C++ development. I have the same versions on a Windows XP 32Bit system and a 64 Bit OpenSuse Linux.

I do not have direct access to internet, I have to use a proxy with authentication. The Windows XP system has no trouble with that configuration and I can access the update sites without any problem. But the Linux version has made some trouble.

I tried different configurations, started with the same settings as in the Windows case. But I can not access the internet because the authentication is not working. I tried the manual, native an direct settings. For the direct setting I get as expected always a timeout. But for the other cases I always get the message "HTTP Proxy Authentication Required".

More information on 
http://www.eclipse.org/forums/index.php?t=rview&goto=543446#msg_543446

I was asked to enter it as bug, but I am not sure if it depends on the local company proxy (unkown type).

        Best regards

Reproducible: Always

Steps to Reproduce:
1. Set eclipse network settings similar to the firefox proxy settings
2. Try to connect to a update site
3. Failed with "HTTP Proxy Authentication Required"
Comment 1 Pawel Pogorzelski CLA 2010-06-29 10:43:12 EDT
Stefan, are you talking about the case when you have Manual provider selected on both OSes? Also, what authentication is that (basic, digest, NTLM, NTLMv2)?
Comment 2 Stefan Mising name CLA 2010-06-29 12:19:41 EDT
Hi, I tried on both OSes the same network configuration (manual, direct and native connection) with and without the JVM parameters. I have no idea about the configuration, because I do not configure that at all in firefox neither in the Windows eclipse. I am not sure, if I can see that somewhere. The proxy itself is probaly a windows machine, but I am not sure about that either.

Sorry, that I can not provide you with more information! Thank you for the help!

            Best regards
Comment 3 Stefan Mising name CLA 2010-06-30 03:10:04 EDT
Hi,

I look at the http headers of firefox and it seems that it is a NTML proxy authentication. And as mentioned it works with windows eclispe but not with a linux eclipse.

      Best regards
Comment 4 Stefan Mising name CLA 2010-06-30 03:27:29 EDT
Hi,

after some more google work I found a workaround with the cntlm proxy. But this probably should be not the perfect solution. 

    Best regards
Comment 5 Pawel Pogorzelski CLA 2010-06-30 04:44:51 EDT
Stefan, what JRE do you use on the Linux machine? On this platform you should probably provide user name in a domain form and a password. On Windows credentials tried are these of the currently authenticated user.

http://www.oaklandsoftware.com/product_http/compare.html
Comment 6 Darabos, Edvárd Konrád CLA 2010-07-29 05:56:08 EDT
I experience the same problem behind a proxy that I do not have power over. The following information has been produced by Wireshark.

Client says:
 GET http://download.eclipse.org/eclipse/updates/3.6/p2.index HTTP/1.1
 Cache-Control: max-age=0
 Accept-encoding: gzip
 User-Agent: Jakarta Commons-HttpClient/3.1
 Host: download.eclipse.org
 Proxy-Connection: Keep-Alive

Server says:
 HTTP/1.0 407 Proxy Authentication Required
 Server: squid/3.0.STABLE13
 ...
 Proxy-Authenticate: Negotiate
 ...

The client tries the same HTTP request as before (without any credentials) and gets the same response (surprise, surprise).

--
Eclipse Version: 3.6.0 Build id: I20100608-0911
Comment 7 Darabos, Edvárd Konrád CLA 2010-07-29 06:12:33 EDT
Windows XP
Comment 8 Martin Hardy CLA 2010-10-05 05:25:32 EDT
I've got the same problem on a 64bits Ubuntu.
Eclipse for RCP and RAP Developers

Version: Helios Release
Build id: 20100617-1415

Note that problem occurs most of the time but, by closing re-opening Eclipse, it manages to pass the proxy some times... but I don't understand why..

By the way, even in the cases when Eclipse manages to pass the proxy, it seems that some update sites access fail with an "HTTP Proxy authentication Required".
example : 
HTTP Proxy Authentication Required: http://community.polarion.com/projects/subversive/download/eclipse/2.0/helios-site/content.xml
Comment 9 Martin Hardy CLA 2010-10-05 08:11:15 EDT
Additional information : if I let the "Install new software" window run for a long time after having chose an udate site, it ends with the following error :

Unable to read repository at http://download.eclipse.org/releases/helios/compositeContent.xml.
Unable to read repository at http://download.eclipse.org/releases/helios/compositeContent.xml.
Malformed reply from SOCKS server
Comment 10 Missing name CLA 2010-11-06 15:07:47 EDT
I experience too, the same problem behind a proxy on linux (on win its ok!).
Even if Network connection is configured as Manual, the internal browser of eclipse uses direct connexion and not proxy one!
I've installed eclipse on my home unix account on a Linux RH 5.5 platform.
Best regards.
Comment 11 Matt CLA 2010-12-13 15:32:47 EST
+1 for eclipse on my home unix account on a Linux RHEL 5.5 platform.
Comment 12 Ravindranath M CLA 2012-07-25 13:31:42 EDT
any fix for this issue?  It is vexing one, keeping me troubled for weeks.

My setup:
OS: Ubuntu 11.x  -- 64 bit
Proxy: requires NTLM authentication
Normal browsing using Firefox works fine.

My options:
- tried manual, direct and native

- tried ntlm configuration in eclipse.ini as suggested here(http://stackoverflow.com/questions/1500646/eclipse-3-5-unable-to-install-plugins)

- tried with internal browser

Nothing works.
Comment 13 Eclipse Genie CLA 2020-05-18 16:45:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.