Bug 37001

Summary: Appliance wizard hangs due to JavaScript error for multiple network interfaces
Product: UCS Reporter: Stefan Gohmann <gohmann>
Component: UMC - Basic settingsAssignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Alexander Kläser <klaeser>
Severity: normal    
Priority: P5 CC: best, damrose, gohmann, jmm, klaeser
Version: UCS 4.0   
Target Milestone: UCS 4.0-0-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): Troubleshooting
Max CVSS v3 score:
Bug Depends on: 36880    
Bug Blocks:    

Description Stefan Gohmann univentionstaff 2014-11-25 14:36:52 CET
Unfortunately, with more than four devices the wizard hangs again.
 

+++ This bug was initially created as a clone of Bug #36880 +++

See screeshot for JS exact error, reproducible with two network interfaces where one (in this case eth1) is not configured via UCR.
Comment 1 Florian Best univentionstaff 2014-11-25 15:47:03 CET
There were 5 places where a not existing widget was accessed. So I fixed the method which returns the network devices to only return the first 4 widgets.

Package: univention-system-setup
Version: 8.1.65-3.791.201411251527
Branch: ucs_4.0-0
Scope: errata4.0-0
Comment 2 Florian Best univentionstaff 2014-11-25 17:06:48 CET
WORKAROUND for affected systems is to execute the following lines on the CLI:
sed -i 's#return devices;#return devices.slice(0, 4);#' /usr/share/univention-management-console-frontend/js/umc/modules/setup/ApplianceWizard.js;
. /usr/share/univention-lib/umc.sh;
umc_frontend_new_hash;

After this a browser reload is necessary.
Comment 3 Alexander Kläser univentionstaff 2014-11-27 13:10:48 CET
Works fine now, the fix only shows at maximum 4 network interfaces.
YAML file ok (updated the package version).

→ VERIFIED
Comment 4 Moritz Muehlenhoff univentionstaff 2014-12-04 12:22:48 CET
http://errata.univention.de/ucs/4.0/2.html