Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318969 - [Net] On Ubuntu-Karmic (at least) Proxy settings are not working
Summary: [Net] On Ubuntu-Karmic (at least) Proxy settings are not working
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 major with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 04:37 EDT by Graeme Vetterlein CLA
Modified: 2019-11-27 07:16 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graeme Vetterlein CLA 2010-07-06 04:37:39 EDT
I find this a little hard to believe. I thought it must be finger trouble or possibly some setup on my machine, so I tried on another Ubuntu (Karmic) machine box, same behaviour.

Simple example, install Eclipse 3.6 goto help -> help contents and I get an error from my proxy (not on localhost):
...
While trying to retrieve the URL: http://127.0.0.1:43166/help/index.jsp
...

Turns out it is due to my desktop settings in Ubuntu I set System->preferences->Network Proxy, point at a proxy BUT have Ignored hosts set to localhost 127.0.0/8 *.local *.home

Despite this it seem to keep trying to get this page via the proxy.

If I go to : eclipse->preferences->general->networksettings I see I have NATIVE selected. I can try any/all combinations and nothing is affected.

I can however turn off 'network proxy' in Ubuntu ... THEN and only then do any of the settings inside Eclipse have an effect.

To reproduce this is very simple. Assuming you don't need a proxy ... in ubuntu (via GUI) set the proxy to 1.2.3.4 and the the ignored hosts set as-is (the list above in fact) then do help -> help contents ...it will hang and then timeout. I tested this on a 2nd machine which did not use proxies.

BTW. I've since found a way to get this one page to work ... add 127.0.0.1 (ie single machine to exclude list , not a class C network) and it now excludes it .

It looks as if the Ubuntu settings are being used in preference to any other other and the syntax is not being parsed correctly.
Comment 1 l1nk CLA 2010-07-14 07:33:08 EDT
I'm having the same error here....
The only difference is that my operating system is Fedora 9


Any solution?
Comment 2 Wojciech Galanciak CLA 2010-08-11 08:40:45 EDT
The reason is that Ubuntu, in proxy settings for bypass, uses CIDR notation (e.g. 127.0.0.0/8). This notation is not supported by Eclipse. For more details see bug 294420.
Comment 3 Graeme Vetterlein CLA 2010-08-11 16:02:34 EDT
Not quite.

It's true that Eclipse does not understand the CIDR notation. It would be nice if it did but not a fix for this bug:

1: Since it does not understand the format, why does it copy data from a list which does support this format?


2: Why is it even using the Ubuntu settings ... even when I turned off all the eclipse setting to allow it to use the Debian values.

so I say "Don't use the Debian values ... use these value I give it" it ignores me and takes it lead from the stored Debian values but the stored Debian values are by default created in a format which it cannot  understand so they don't work.

There are probably 3 or 4 separate bugs back to back here.
Comment 4 Wojciech Galanciak CLA 2010-08-24 10:16:38 EDT
(In reply to comment #3)
> Not quite.
> 
> It's true that Eclipse does not understand the CIDR notation. It would be nice
> if it did but not a fix for this bug:
> 
> 1: Since it does not understand the format, why does it copy data from a list
> which does support this format?
>

Help Contents uses browser to browse pages. The same is in Internal Web Browser View. This is default system browser (in Linux it is Mozilla) and it does not use Eclipse proxy settings and directly uses system settings. It is quite possible that it also does not support CIDR notation. You can check, but I think that also Firefox does not support it.

Anyway, you are right that it may be confusing for a user. We will consider all options and provide fix for this issue.

> 2: Why is it even using the Ubuntu settings ... even when I turned off all the
> eclipse setting to allow it to use the Debian values.
> 
> so I say "Don't use the Debian values ... use these value I give it" it ignores
> me and takes it lead from the stored Debian values but the stored Debian values
> are by default created in a format which it cannot  understand so they don't
> work.
> 
> There are probably 3 or 4 separate bugs back to back here.

It looks like this is separated bug. Could you make those steps to confirm that:
Switch Provider to Direct and try to:
- open Help->"Install New Sofware" and try to get content from any update site   - connect with any CVS repository. 
If it still uses system settings for these operations and you cannot establish connection, you should open new bug with steps to reproduce.
Comment 5 Graeme Vetterlein CLA 2010-09-21 15:49:14 EDT
(In reply to comment #4)

> 
> It looks like this is separated bug. Could you make those steps to confirm
> that:
> Switch Provider to Direct and try to:
> - open Help->"Install New Sofware" and try to get content from any update site 
>  - connect with any CVS repository. 
> If it still uses system settings for these operations and you cannot establish
> connection, you should open new bug with steps to reproduce.

I rather feel my original bug has been hijacked. This 'separate bug' is the original bug I raised ... I installed Eclipse and right out of the box it failed to load a help page because it had gone and read the system settings despite my selecting do to use them.
Comment 6 Graeme Vetterlein CLA 2010-09-21 17:00:24 EDT
I have created:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=325905

To hold details of reproducing the original problem.
Comment 7 Wojciech Galanciak CLA 2010-10-08 07:14:43 EDT
Original issue (from description) is a duplicate of bug 308035. In both bugs is the same workaround which solves this problem. Work on a support for Eclipse proxy settings in internal browser can be monitored in bug 301424.
Comment 8 Lars Vogel CLA 2019-11-27 07:16:50 EST
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.

If you have further information on the current state of the bug, please add it.
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.

If the bug is still relevant, please remove the stalebug whiteboard tag.