Bug 49768 - UDM DetailPage sometimes fails to open on first try
UDM DetailPage sometimes fails to open on first try
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-1-errata
Assigned To: Johannes Keiser
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-07-01 14:44 CEST by Jürn Brodersen
Modified: 2019-08-07 15:44 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.229
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 Jürn Brodersen univentionstaff 2019-07-01 14:44:33 CEST
UDM DetailPage sometimes fails to open on first try

I can reproduce this reliable by using ucs@school:
Open a student through the "School Administration"
Click on "Advanced Settings"
The new tab is empty and a traceback is thrown
Close the the tab and try again -> now it works

Bug 47985 might have introduced this.



Traceback ("_headerButtons" are null):

'''
dojo.js.uncompressed.js:6580 TypeError: Cannot read property 'submit' of undefined
    at Object.<anonymous> (DetailPage.js:276)
    at Object.<anonymous> (dojo.js.uncompressed.js:2941)
    at b (dojo.js.uncompressed.js:16806)
    at Object.h._watchCallbacks (dojo.js.uncompressed.js:16810)
    at Object._set (dojo.js.uncompressed.js:16298)
    at Object._showChild (dojo.js.uncompressed.js:86567)
    at Object._transition (dojo.js.uncompressed.js:86500)
    at Object.selectChild (dojo.js.uncompressed.js:86472)
    at Object.addChild (dojo.js.uncompressed.js:86412)
    at Object.advice (dojo.js.uncompressed.js:5841) "TypeError: Cannot read property 'submit' of undefined
    at Object.<anonymous> (http://10.200.41.20/univention/management/modules/udm/DetailPage.js:276:25)
    at Object.<anonymous> (http://10.200.41.20/univention/js/dojo/dojo.js:42:499)
    at b (http://10.200.41.20/univention/js/dojo/dojo.js:244:161)
    at Object.h._watchCallbacks (http://10.200.41.20/univention/js/dojo/dojo.js:244:177)
    at Object._set (http://10.200.41.20/univention/js/dojo/dojo.js:238:189)
    at Object._showChild (http://10.200.41.20/univention/js/dojo/dojo.js:1686:459)
    at Object._transition (http://10.200.41.20/univention/js/dojo/dojo.js:1685:261)
    at Object.selectChild (http://10.200.41.20/univention/js/dojo/dojo.js:1684:505)
    at Object.addChild (http://10.200.41.20/univention/js/dojo/dojo.js:1684:6)
    at Object.advice (http://10.200.41.20/univention/js/dojo/dojo.js:82:277)
    ----------------------------------------
    rejected at a (http://10.200.41.20/univention/js/dojo/dojo.js:85:283)
    at d (http://10.200.41.20/univention/js/dojo/dojo.js:85:35)
    at h (http://10.200.41.20/univention/js/dojo/dojo.js:84:304)
    at b.resolve (http://10.200.41.20/univention/js/dojo/dojo.js:86:387)
    at a (http://10.200.41.20/univention/js/dojo/dojo.js:85:257)
    at d (http://10.200.41.20/univention/js/dojo/dojo.js:85:16)
    at h (http://10.200.41.20/univention/js/dojo/dojo.js:84:304)
    at b.resolve (http://10.200.41.20/univention/js/dojo/dojo.js:86:387)
    at a (http://10.200.41.20/univention/js/dojo/dojo.js:85:257)
    at d (http://10.200.41.20/univention/js/dojo/dojo.js:85:16)
    ----------------------------------------
Error
    at k.extend.then.then.c.then (http://10.200.41.20/univention/js/dojo/dojo.js:87:177)
    at Object.buildRendering (http://10.200.41.20/univention/management/modules/udm.js:286:30)
    at Object.create (http://10.200.41.20/univention/js/dojo/dojo.js:231:145)
    at Object.postscript (http://10.200.41.20/univention/js/dojo/dojo.js:230:104)
    at new <anonymous> (http://10.200.41.20/univention/js/dojo/dojo.js:152:34)
    at Object.<anonymous> (http://10.200.41.20/univention/management/main.js:1659:12)
    at http://10.200.41.20/univention/js/dojo/dojo.js:42:499
    at d (http://10.200.41.20/univention/js/dojo/dojo.js:84:378)
    at b.then.c.then (http://10.200.41.20/univention/js/dojo/dojo.js:87:232)
    at Object.openModule (http://10.200.41.20/univention/management/main.js:1633:35)"
f @ dojo.js.uncompressed.js:6580
(anonymous) @ dojo.js.uncompressed.js:6627
filter @ dojo.js.uncompressed.js:4319
d @ dojo.js.uncompressed.js:6622
setTimeout (async)
h @ dojo.js.uncompressed.js:6615
h @ dojo.js.uncompressed.js:6061
k.reject @ dojo.js.uncompressed.js:6257
a @ dojo.js.uncompressed.js:6122
d @ dojo.js.uncompressed.js:6093
h @ dojo.js.uncompressed.js:6066
resolve @ dojo.js.uncompressed.js:6230
a @ dojo.js.uncompressed.js:6119
d @ dojo.js.uncompressed.js:6090
h @ dojo.js.uncompressed.js:6066
resolve @ dojo.js.uncompressed.js:6230
a @ dojo.js.uncompressed.js:6119
d @ dojo.js.uncompressed.js:6090
h @ dojo.js.uncompressed.js:6066
resolve @ dojo.js.uncompressed.js:6230
a @ dojo.js.uncompressed.js:6119
d @ dojo.js.uncompressed.js:6090
h @ dojo.js.uncompressed.js:6066
resolve @ dojo.js.uncompressed.js:6230
a @ dojo.js.uncompressed.js:6119
d @ dojo.js.uncompressed.js:6090
h @ dojo.js.uncompressed.js:6066
resolve @ dojo.js.uncompressed.js:6230
a @ dojo.js.uncompressed.js:6119
d @ dojo.js.uncompressed.js:6090
h @ dojo.js.uncompressed.js:6066
resolve @ dojo.js.uncompressed.js:6230
a @ dojo.js.uncompressed.js:6119
d @ dojo.js.uncompressed.js:6096
h @ dojo.js.uncompressed.js:6066
resolve @ dojo.js.uncompressed.js:6230
a @ dojo.js.uncompressed.js:6119
d @ dojo.js.uncompressed.js:6090
h @ dojo.js.uncompressed.js:6066
resolve @ dojo.js.uncompressed.js:6230
e @ dojo.js.uncompressed.js:28806
d @ dojo.js.uncompressed.js:28841
load (async)
l @ dojo.js.uncompressed.js:28860
d @ dojo.js.uncompressed.js:28942
a.<computed> @ dojo.js.uncompressed.js:28642
_request @ dojo.js.uncompressed.js:33737
umcpCommand @ dojo.js.uncompressed.js:33696
ucr @ dojo.js.uncompressed.js:34833
_loadUCRVariables @ udm.js:245
buildRendering @ udm.js:286
create @ dojo.js.uncompressed.js:15829
postscript @ dojo.js.uncompressed.js:15765
(anonymous) @ dojo.js.uncompressed.js:10374
(anonymous) @ main.js:1659
(anonymous) @ dojo.js.uncompressed.js:2941
d @ dojo.js.uncompressed.js:6075
then.c.then @ dojo.js.uncompressed.js:6296
openModule @ main.js:1633
(anonymous) @ Wizard.js:91
(anonymous) @ dojo.js.uncompressed.js:2941
(anonymous) @ dojo.js.uncompressed.js:2939
r @ dojo.js.uncompressed.js:5828
_onClick @ dojo.js.uncompressed.js:22095
(anonymous) @ dojo.js.uncompressed.js:2939
__onClick @ dojo.js.uncompressed.js:22082
(anonymous) @ dojo.js.uncompressed.js:2939
Show 11 more frames
dojo.js.uncompressed.js:6580 TypeError: Cannot read property 'help' of undefined
    at Object._setHelpLinkAttr (DetailPage.js:290)
    at Object.set (dojo.js.uncompressed.js:16242)
    at dojo.js.uncompressed.js:2893
    at d (dojo.js.uncompressed.js:6075)
    at h (dojo.js.uncompressed.js:6066)
    at b.resolve (dojo.js.uncompressed.js:6230)
    at a (dojo.js.uncompressed.js:6119)
    at dojo.js.uncompressed.js:6108
    at d (dojo.js.uncompressed.js:6075)
    at h (dojo.js.uncompressed.js:6066) "TypeError: Cannot read property 'help' of undefined
    at Object._setHelpLinkAttr (http://10.200.41.20/univention/management/modules/udm/DetailPage.js:290:40)
    at Object.set (http://10.200.41.20/univention/js/dojo/dojo.js:236:383)
    at http://10.200.41.20/univention/js/dojo/dojo.js:42:177
    at d (http://10.200.41.20/univention/js/dojo/dojo.js:84:378)
    at h (http://10.200.41.20/univention/js/dojo/dojo.js:84:304)
    at b.resolve (http://10.200.41.20/univention/js/dojo/dojo.js:86:387)
    at a (http://10.200.41.20/univention/js/dojo/dojo.js:85:257)
    at http://10.200.41.20/univention/js/dojo/dojo.js:85:163
    at d (http://10.200.41.20/univention/js/dojo/dojo.js:84:378)
    at h (http://10.200.41.20/univention/js/dojo/dojo.js:84:304)
    ----------------------------------------
    rejected at a (http://10.200.41.20/univention/js/dojo/dojo.js:85:283)
    at d (http://10.200.41.20/univention/js/dojo/dojo.js:85:35)
    at h (http://10.200.41.20/univention/js/dojo/dojo.js:84:304)
    at b.resolve (http://10.200.41.20/univention/js/dojo/dojo.js:86:387)
    at a (http://10.200.41.20/univention/js/dojo/dojo.js:85:257)
    at http://10.200.41.20/univention/js/dojo/dojo.js:85:163
    at d (http://10.200.41.20/univention/js/dojo/dojo.js:84:378)
    at h (http://10.200.41.20/univention/js/dojo/dojo.js:84:304)
    at b.resolve (http://10.200.41.20/univention/js/dojo/dojo.js:86:387)
    at Object.<anonymous> (http://10.200.41.20/univention/js/dojo/dojo.js:526:516)
    ----------------------------------------
Error
    at k.extend.then.then.c.then (http://10.200.41.20/univention/js/dojo/dojo.js:87:177)
    at Object.renderDetailPage (http://10.200.41.20/univention/management/modules/udm/DetailPage.js:1194:19)
    at Object.<anonymous> (http://10.200.41.20/univention/management/modules/udm/DetailPage.js:256:13)
    at http://10.200.41.20/univention/js/dojo/dojo.js:42:499
    at d (http://10.200.41.20/univention/js/dojo/dojo.js:84:378)
    at b.then.c.then (http://10.200.41.20/univention/js/dojo/dojo.js:87:232)
    at Object.<anonymous> (http://10.200.41.20/univention/management/modules/udm/DetailPage.js:255:53)
    at http://10.200.41.20/univention/js/dojo/dojo.js:42:499
    at d (http://10.200.41.20/univention/js/dojo/dojo.js:84:378)
    at k.extend.then.then.c.then (http://10.200.41.20/univention/js/dojo/dojo.js:87:232)"
'''
Comment 1 Florian Best univentionstaff 2019-07-01 14:47:10 CEST
We are pre-rendering a detail page for at least users/user. This might not happen already but most code might expect it.
Comment 2 Johannes Keiser univentionstaff 2019-08-01 11:29:01 CEST
f909a2c966 Bug #49768: yaml
de0f278391 Bug #49768: Merge branch 'jkeiser/4.4-1/detailpage_fails_open' into 4.4-1
a7df33493e Bug #49768: yaml
f2ef5b9e06 Bug #49768: debian changelog
34ad1f20e5 Bug #49768: prevent undefined reference of _headerButtons during creation lifecycle

Successful build
Package: univention-management-console-module-udm
Version: 9.0.12-20A~4.4.0.201908011118

Successful build
Package: univention-web
Version: 3.0.5-27A~4.4.0.201908011121
Comment 3 Florian Best univentionstaff 2019-08-02 18:17:16 CEST
OK: opening module works again when the module was not opened before
OK: YAML
Comment 4 Johannes Keiser univentionstaff 2019-08-06 10:46:37 CEST
bf217b91f4 Bug #49768: yaml