Bug 330691

Summary: [Net] Network Connections page displays "Direct" when "Native" is configured
Product: [Eclipse Project] Platform Reporter: Björn Kahlert <mail>
Component: TeamAssignee: Platform Team Inbox <platform-team-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: ankur_sharma, codelabor, darrentcook, deepakazad, Faaiez, francisu, gongqijian, johannes.dorn, konrad_w, pyvesdev, sebtardif, sslavic, timothy.rundle, tony.homer, triskeldeian, wojciech.galanciak
Version: 3.6   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: stalebug
Attachments:
Description Flags
Eclipse Network Settings - Direct
none
Eclipse Network Settings - Manual
none
Eclipse Network Settings - Native
none
Installed plug-ins none

Description Björn Kahlert CLA 2010-11-19 12:57:00 EST
Build Identifier: I20100608-0911

The Network Configurations in Eclipse Preferences displays "Direct" no matter if you have "Direct" or "Native" configured. If you choose "Manual" it displays correctly.

Consequence: If "Direct" is displayed but "Native" is configured this can lead to irreproducible network behavior.

Side note: I have the impression that - based on the described phenomenon - the proxy entries display doesn't always display correct information. Unfortunately I couldn't reproduce the problem correctly.

Reproducible: Always

Steps to Reproduce:
1. Use a Mac
2. Open Eclipse
3. Open Preferences
4. Go to General > Network Connections
5. Set Active Provider to Native
6. Close Preferences
7. Reopen Preferences and check the Active Provider setting - it displays Direct although it should display Native
Comment 1 Wojciech Galanciak CLA 2010-11-29 03:27:42 EST
Björn,
I would like to see what is in your preferences after each change. To do that set native provider, press ok and go and copy proxy preference file ((..\eclipse\configuration\.settings\org.eclipse.core.net.prefs). Repeat this process for each provider. If you use manual proxy settings which cannot be published in public, change host name manually in those files for, e.g. www.host.com.
Comment 2 Björn Kahlert CLA 2010-11-30 18:27:19 EST
Created attachment 184201 [details]
Eclipse Network Settings - Direct
Comment 3 Björn Kahlert CLA 2010-11-30 18:27:46 EST
Created attachment 184202 [details]
Eclipse Network Settings - Manual
Comment 4 Björn Kahlert CLA 2010-11-30 18:28:04 EST
Created attachment 184203 [details]
Eclipse Network Settings - Native
Comment 5 Wojciech Galanciak CLA 2010-12-01 04:37:15 EST
Ok, these files look correctly. Could you check in a Plug-ins View if there is any fragment with org.eclipse.core.net.xxx name?
Comment 6 Björn Kahlert CLA 2010-12-01 14:12:15 EST
(In reply to comment #5)
> Ok, these files look correctly. Could you check in a Plug-ins View if there is
> any fragment with org.eclipse.core.net.xxx name?

No, there is no such plug-in.
Comment 7 Björn Kahlert CLA 2010-12-01 14:13:18 EST
Created attachment 184289 [details]
Installed plug-ins
Comment 8 Konrad Windszus CLA 2011-04-09 05:36:08 EDT
The problem probably occurs due to IProxyService.hasSystemProxies is always false under Mac. Either the drop-down box should reduced, so that it does not provide "Native" when hasSystemProxies returns false, or (even better) system proxy support should be added for Mac.
Comment 9 Stevo Slavic CLA 2014-10-07 08:07:28 EDT
This issue is still there, Mac OS X 10.9.5, Eclipse Luna.

If I configure -Djava.net.useSystemProxies=true for a Java app, like Maven (through MAVEN_OPTS environment variable), the Java app uses system proxy.

Adding "-Djava.net.useSystemProxies=true" to eclipse.ini vmargs didn't help, "Native" does not stick/persist, and system proxies are not used.
Comment 10 Darren Cook CLA 2014-11-13 21:52:12 EST
Like Stevo reported, I also have this error under 10.9.5 and Luna. I have to go into preferences and toggle between Direct and Manual any time I hop on or off my company VPN, because it does not recognize the proxy change.
Comment 11 Faaiez Sallie CLA 2015-05-20 03:03:21 EDT
Hi 

I am using OS Yosemite 10.10.3 with Eclipse Standard/SDK
Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600

I am experiencing the exact same problem described in this bug.
Any idea when we can expect a fix?
This is really a problem as the client I am working at uses a .pac file for proxy settings and therefore I need to set the Network connection settings to Native.
When I do this it doesn't save this setting and changes back to Direct.
Anyone have a workaround for this in the meantime?

Thanks
Comment 12 Sabato Stefano Caiazza CLA 2016-07-23 06:42:52 EDT
On OS X 10.11.5 and 10.11.6 with Mars.2 the bug persists
Comment 13 Shin Sang-jae CLA 2017-06-15 21:12:18 EDT
On OS X 10.12.5 with Eclipse Oxygen, Neon 3 the bug persists
Comment 14 srJS uKMyjy CLA 2018-04-17 06:40:29 EDT
On OS X 10.11.6 with Eclipse Oxygen.2 the bug persists
Comment 15 Tony Homer CLA 2018-12-05 15:54:28 EST
On OS X 10.14.1 with Eclipse 2018-12M2 the bug persists
Comment 16 Eclipse Genie CLA 2021-03-26 13:53:40 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.