Univention Bugzilla – Bug 50203
App Settings: outside settings do not use the InitialValue
Last modified: 2019-10-09 14:21:18 CEST
Type = List
Description = Some Setting
Show = Install, Settings
Values = x, y, z
InitialValue = z
Scope = outside
should $(ucr set myapp/my-setting=z)
if univention-app install myapp is used. But it does not. Instead, the installation aborts, because "None is not a valid option".
The InitialValue of the setting is simply ignored if not given explicitly (install --set myapp/my-setting=z).
This is a problem in our App Tests as the installation is done without further params and a required outside Setting will lead to an error.
See daa447a434..98b193538e in dwiesent/bug50203
The Settings API looks flawed. We should somehow add self.app = app in Settings.__init__()
Strictly speaking, it is an API change either way. (But nobody relies on it)
according to patch.
get_initial_value now takes "app" as argument. (to test for self.is_outside(app))
Zammad tests run now (until other tests fail)
OK: initialvalue is used for scope outside