Bug 39044 - Network settings page validation error on unjoined system
Network settings page validation error on unjoined system
Product: UCS
Classification: Unclassified
Component: System setup
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-2-errata
Assigned To: Alexander Kläser
Drees Dormann
: 38374 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2015-07-30 10:29 CEST by Erik Damrose
Modified: 2015-08-06 17:52 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
best: Patch_Available+

patch for /usr/share/pyshared/univention/management/console/modules/setup/__init__.py (2.73 KB, patch)
2015-07-30 10:56 CEST, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Damrose univentionstaff 2015-07-30 10:29:06 CEST
If a UCS system has not been joined during system setup and the user tries to change the network settings of that system, the form validation fails. Error message reads "The following entries could not be validated:" with no further indication what went wrong.

Example when trying to add a nameserver on an unjoined memberserver:
Validate request is {"options":{"values":{"nameserver2":""}},"flavor":"network"}

shortened respone:
status 200, message <null>, and the result array contains a valid:false entry for hostname, with the error message "No hostname has been specified for the system."

The check is done in univention-system-setup/umc/python/setup/__init__.py:validate

Workaround: Set network settings via UCR variables
Comment 1 Florian Best univentionstaff 2015-07-30 10:34:13 CEST
*** Bug 38374 has been marked as a duplicate of this bug. ***
Comment 3 Florian Best univentionstaff 2015-07-30 10:56:48 CEST
Created attachment 7072 [details]
patch for /usr/share/pyshared/univention/management/console/modules/setup/__init__.py
Comment 4 Alexander Kläser univentionstaff 2015-07-30 17:19:38 CEST
The patch looks fine, I applied it while working on Bug 39048.

univention-system-setup (8.1.69-23):
r62540 | Bug #39044: correct server-side validation for unjoined systems

r62541 | Bug #39044: added YAML entry
Comment 5 Alexander Kläser univentionstaff 2015-07-30 17:31:15 CEST
Merge into 4.1-0.

univention-system-setup (9.0.1-1):
r62543 | Bug #39044: correct server-side validation for unjoined systems
Comment 6 Drees Dormann univentionstaff 2015-08-03 10:04:48 CEST
Fix: OK
Yaml: OK

>> Verified
Comment 7 Janek Walkenhorst univentionstaff 2015-08-06 17:52:57 CEST