Bug 242057

Summary: [Net] Default preference gets ignored
Product: [Eclipse Project] Platform Reporter: Markus Kuppe <bugs.eclipse.org>
Component: TeamAssignee: Wojciech Galanciak <wojciech.galanciak>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, remy.suen, Szymon.Brandys, tomasz.zarna, wojciech.galanciak
Version: 3.4Flags: Szymon.Brandys: review+
Target Milestone: 3.7 M3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch
none
updated patch Szymon.Brandys: iplog+

Description Markus Kuppe CLA 2008-07-25 05:55:50 EDT
As stated in https://bugs.eclipse.org/bugs/show_bug.cgi?id=217663#c3 the UI doesn't honor what is set via default preferences (e.g. via plugin_customization.ini etc.). This would be especially useful in headless mode though.
Currently one needs to create the $osgi.configuration.area/.settings/org.eclipse.core.net.prefs first (which feels like using internal API).
Comment 1 Pawel Pogorzelski CLA 2008-10-03 10:47:38 EDT
The proxy preferences from plugin_customisation.ini doesn't get load because ProxyManager looks for settings directly in a configuration scope node.

For this facility to work also default scope has to be searched. I will provide a patch as soon as I come up with a proper solution.
Comment 2 Pawel Pogorzelski CLA 2008-11-21 05:58:16 EST
The change appeared to be more complex since there is code that explicitly walks through configuration scope nodes.

No time to address the issue right now. Maybe someone is willing to help...
Comment 3 Wojciech Galanciak CLA 2010-09-27 09:15:06 EDT
Created attachment 179635 [details]
patch

This patch provides support for default values of proxy preferences. Main features:
- possibility to provide default settings through -pluginCustomization which allows to use proxy settings in headless mode,
- separation of direct operations on preferences to PreferencesManager - interaction with preferences only by using its public methods
- ability to get default values of proxy settings for e.g. full functional Restore Defaults button (bug 283036).
Comment 4 Wojciech Galanciak CLA 2010-10-06 12:52:36 EDT
Created attachment 180349 [details]
updated patch
Comment 5 Szymon Brandys CLA 2010-10-07 07:24:56 EDT
Now it looks good. Thanks Wojtek.
Comment 6 Dani Megert CLA 2010-10-19 08:51:25 EDT
This fix is not good. It causes exceptions, see bug 327672.