Bug 39048

Summary: Redirect to UMC after completing setup wizard is not working
Product: UCS Reporter: Alexander Kläser <klaeser>
Component: UMC - Setup wizardAssignee: Alexander Kläser <klaeser>
Status: CLOSED FIXED QA Contact: Drees Dormann <dormann>
Severity: normal    
Priority: P5 CC: best, walkenhorst
Version: UCS 4.0   
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): Error handling, Usability
Max CVSS v3 score:

Description Alexander Kläser univentionstaff 2015-07-30 13:10:23 CEST
I configured an EC2 UCS instance for which I updated all packages before executing the setup wizard. At the last page, when hitting "Continue", the browser hang in the progress animation "Restarting server components". On the JavaScript console, I received the following error:

> TypeError: prim.ip4 is undefined
> Stack trace:
> ._getNewIpAddress@https://.../univention-management-console/js_$20153007063526$/umc/modules/setup.js:338:8
> ._redirectBrowser@https://.../univention-management-console/js_$20153007063526$/umc/modules/setup.js:380:16
> ._renderWizard/</<@https://.../univention-management-console/js_$20153007063526$/umc/modules/setup.js:244:7
> ...

When looking at the return values, the in the code requested value for values.interfaces[values['interfaces/primary']] would be:

{ name: "eth0", interfaceType: "Ethernet", ip4dynamic: true }

It seems as if there is a problem with the current JavaScript code.
Comment 1 Alexander Kläser univentionstaff 2015-07-30 17:09:15 CEST
I have corrected this problem now. IP addresses are also returned if a DHCP setting is configured. AFAIS, this problem should have been around for a while now.

@QA: Please verify the behaviour in a dynamic + static network setup and make sure that the additional addresses do not affect the UCR variables that are being set by the setup scripts.


univention-system-setup (8.1.69-23):
r62538 | Bug #39048: return IP also for DHCP for redirection after setup wizard

2015-07-30-univention-system-setup.yaml:
r62539 | Bug #39048: added YAML entry
Comment 2 Alexander Kläser univentionstaff 2015-07-30 17:31:38 CEST
Merged into 4.1-0.

univention-system-setup (9.0.1-1):
r62542 | Bug #39048: return IP also for DHCP for redirection after setup wizard
Comment 3 Drees Dormann univentionstaff 2015-08-03 13:56:32 CEST
Tested with dhcp and dhcp + static ip, both is working. I found no conflict after install, everything seems fine.

Fix: OK
YAML: OK
Comment 4 Janek Walkenhorst univentionstaff 2015-08-06 17:52:51 CEST
<http://errata.univention.de/ucs/4.0/274.html>