Univention Bugzilla – Bug 55517
make "unset" vs "empty string" distinguishable from each other in UMC UCR module
Last modified: 2023-07-12 13:57:18 CEST
One tried to remove the value for the UCR variable mail/postifix/mynetworks via UMC UCR. The descriptions says: > If the variable is unset, '127.0.0.0/8' applies. So, he removed the value. Unfortunately, the UCR variable was set to an empty string which leads to a broken self service. Maybe a popup could be shown which asks if the UCR variable should be set to an empty value or removed.
Proposal for an UMC implementation: - the UI to change the value of an UCR variable offers an "unset" button next to the "save" button - in case the user tries to save an "empty string", a popup asks if really an empty string should be set, or if the variable should be "unset" - if possible both the edit dialogue and the popup offer an explanation for the difference between the two, maybe enhanced with a link to an help article Beside that we should review the coding guidelines to check if we can consider a rule that UCR templates need to be written in a way that empty values do not lead to an misconfigured service.
Happened again, this also causes the systemdiagnoses to give warnings about those variables. e.g. squid/httpport This will affect all domains, when the UMC ucr is used to manage the ucr variables!
Seen in the next Ticket: 2023053021000272 Einige UCR-Variablen haben momentan ungültige Werte. Dieser Test wurde erst kürzlich hinzugefügt; einige Warnungen können unproblematisch sein. Bitte untersuchen Sie diese wenn Sie auf diesem System Probleme beobachten. Benutzen Sie das Modul Modul "Univention Configuration Registry", um diese Werte zu korrigieren. Die Variable 'squid/parent/port' hat den ungültigen Wert ''.
Next Customer: 2023053121000191
Again next customer. Squid is broken and not usable anymore!
If a UCR variable is changed to an empty value via UMC, a confirmation dialog is displayed to let the user decide on whether to store an empty string or to actually delete the variable. univention-management-console-module-ucr.yaml 4a728fd3845d | Bug #55517: showing confirmation dialog before saving an empty value into an UCR variable univention-management-console-module-ucr (9.0.1-2) 4a728fd3845d | Bug #55517: showing confirmation dialog before saving an empty value into an UCR variable ucs-test (10.0.15-10) 4a728fd3845d | Bug #55517: showing confirmation dialog before saving an empty value into an UCR variable
QA: - confirmation dialog: OK - texts and translations: OK - advisories: OK - no related errors/tracebacks in logfiles: OK
<https://errata.software-univention.de/#/?erratum=5.0x732>