Bug 37001 - Appliance wizard hangs due to JavaScript error for multiple network interfaces
Appliance wizard hangs due to JavaScript error for multiple network interfaces
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Basic settings
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-0-errata
Assigned To: Florian Best
Alexander Kläser
:
Depends on: 36880
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-25 14:36 CET by Stefan Gohmann
Modified: 2014-12-04 12:22 CET (History)
5 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): Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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