Support plugin_customization.ini for p2 trust preferences#1075
Conversation
The "trust always" preferences (trustAlways for artifacts and trustAllAuthorities for authorities) were read only from the ProfileScope node via IEclipsePreferences.getBoolean(), which by contract only consults that single node. Values seeded into the Eclipse DefaultScope via a product's plugin_customization.ini were therefore unreachable, even though docs/Trust_Settings.md documents them as the way to configure defaults. Route both reads through IPreferencesService so the lookup chains through ProfileScope first (user-set values still win) and falls through to DefaultScope (where plugin_customization.ini lands). Writes still go to ProfileScope and are unchanged. This mirrors the fix in eclipse-platform/eclipse.platform.ui#1795 for the e4 workbench renderer preferences.
6eccb37 to
739d6ff
Compare
|
@merks AFAIK you implement this, have a look if you have the time. |
|
This pull request changes some projects for the first time in this development cycle. An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch. Git patchFurther information are available in Common Build Issues - Missing version increments. |
|
This seems reasonable. Note that |
Thanks, AFAICS that's already wired up via p2.trustedAuthorities in AuthorityChecker and noted in Trust_Settings.md. |
|
This PR caused regression, see #1098 |
p2's "trust always" preferences (
trustAlwaysfor artifacts,trustAllAuthoritiesfor authorities) were read withIEclipsePreferences.getBoolean()on a singleProfileScopenode, which by contract never falls through to other scopes. Values seeded intoDefaultScopevia a product'splugin_customization.iniwere therefore unreachable, even thoughdocs/Trust_Settings.mddocuments that as the configuration path.Both
isTrustAlways()methods now read throughIPreferencesServicewith{ ProfileScope, DefaultScope.INSTANCE }, so user-set profile values still win andplugin_customization.inidefaults are honored as a fallback. Writes still go to ProfileScope and are unchanged.Mirrors the fix in eclipse-platform/eclipse.platform.ui#1795 for the e4 workbench renderer preferences.