Bug 39044

Summary: Network settings page validation error on unjoined system
Product: UCS Reporter: Erik Damrose <damrose>
Component: System setupAssignee: Alexander Kläser <klaeser>
Status: CLOSED FIXED QA Contact: Drees Dormann <dormann>
Severity: normal    
Priority: P5 CC: best, klaeser, walkenhorst
Version: UCS 4.0Flags: best: Patch_Available+
Target Milestone: UCS 4.0-2-errata   
Hardware: Other   
OS: Linux   
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:
Attachments: patch for /usr/share/pyshared/univention/management/console/modules/setup/__init__.py

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":"192.168.0.3"}},"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

2015-07-30-univention-system-setup.yaml:
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
<http://errata.univention.de/ucs/4.0/274.html>