Bug 36422 - Appliance wizard hangs when changing the language
Appliance wizard hangs when changing the language
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Basic settings
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0
Assigned To: Alexander Kläser
Alexander Kramer
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-04 15:02 CET by Alexander Kläser
Modified: 2014-11-26 06:55 CET (History)
1 user (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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2014-11-04 15:02:41 CET
Currently, it is not possible to change the language in the appliance wizard. When doing so, there is an JavaScript error which leaves the wizard in a standby animation.
Comment 1 Alexander Kläser univentionstaff 2014-11-04 16:14:19 CET
The old wizard gets removed from the module:

[...]
this.removeChild(this.wizard);
this.wizard.destroy();
[...]

And when the new wizard instance is being added:

[...] this.addChild(this.wizard); [...]

The method dijit/layout/StackContainer::layout() is called which operates on reference stored in this.selectedChild which is the reference to the old wizard instance. Adding an explicit this.selectedChild=null after the this.removeChild() call should do the trick.
Comment 2 Alexander Kläser univentionstaff 2014-11-04 16:37:35 CET
I needed to explicitely add removeChild() to umc/widgets/Module.

univention-management-console-frontend (4.1.92-1):
* Bug #36422: added explicit referral for removeChild in umc/widgets/Module
Comment 3 Alexander Kramer univentionstaff 2014-11-05 08:01:09 CET
OK - changing the languages works fine
Comment 4 Stefan Gohmann univentionstaff 2014-11-26 06:55:47 CET
UCS 4.0-0 has been released:
 http://docs.univention.de/release-notes-4.0-0-en.html
 http://docs.univention.de/release-notes-4.0-0-de.html

If this error occurs again, please use "Clone This Bug".