Bug 39863

Summary: policy editing detail page is not closable anymore
Product: UCS Reporter: Florian Best <best>
Component: UMC - Domain management (Generic)Assignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Alexander Kramer <kramer>
Severity: normal    
Priority: P5 CC: best, dormann, gohmann, hahn, klaeser, walkenhorst
Version: UCS 4.0Keywords: interim-3
Target Milestone: UCS 4.1   
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:
Bug Depends on: 38190, 39779    
Bug Blocks: 39833    

Description Florian Best univentionstaff 2015-11-10 16:48:57 CET
The patch introduced the following side effect:

The detail page for editing / adding policies can't get closed anymore.

1. open a object (e.g. a user)
2. click on the policy tab
3. choose any policy and click 'Create policy'
4. a new detail page gets opened which cannot be closed anymore (neither save nor cancel)
(5.) after saving a second time a error message is shown


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

Probably due to the changes with Bug 38190, the multi-edit feature does currently not work and shows a traceback.

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

If I open a user on demo.univention.de, it took between 2 to 4 seconds. A user should be opened in less than a second.
Comment 1 Florian Best univentionstaff 2015-11-10 16:53:05 CET
TypeError: Cannot read property 'resolve' of null
    at declare.createDetailPage (http://10.200.27.40/univention-management-console/js_$20151011025729$/umc/modules/udm.js:1654:27)
    at b._hitchArgs (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:818:321)
    at e (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:766:337)
    at f.then.b.then [as then] (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:769:198)
    at declare.buildRendering (http://10.200.27.40/univention-management-console/js_$20151011025729$/umc/modules/udm.js:295:30)
    at c.create (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1334:125)
    at c.postscript (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1333:99)
    at new <anonymous> (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1158:192)
    at null.<anonymous> (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1263:435)
    at b.hitch (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:819:130) "TypeError: Cannot read property 'resolve' of null
    at declare.createDetailPage (http://10.200.27.40/univention-management-console/js_$20151011025729$/umc/modules/udm.js:1654:27)
    at b._hitchArgs (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:818:321)
    at e (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:766:337)
    at f.then.b.then [as then] (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:769:198)
    at declare.buildRendering (http://10.200.27.40/univention-management-console/js_$20151011025729$/umc/modules/udm.js:295:30)
    at c.create (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1334:125)
    at c.postscript (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1333:99)
    at new <anonymous> (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1158:192)
    at null.<anonymous> (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1263:435)
    at b.hitch (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:819:130)
    ----------------------------------------
    rejected at a (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:767:243)
    at e (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:766:496)
    at f.then.b.then [as then] (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:769:198)
    at declare.buildRendering (http://10.200.27.40/univention-management-console/js_$20151011025729$/umc/modules/udm.js:295:30)
    at c.create (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1334:125)
    at c.postscript (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1333:99)
    at new <anonymous> (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1158:192)
    at null.<anonymous> (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1263:435)
    at b.hitch (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:819:130)
    at e (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:766:337)
    ----------------------------------------
Error
    at f.then.b.then [as then] (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:769:143)
    at declare.buildRendering (http://10.200.27.40/univention-management-console/js_$20151011025729$/umc/modules/udm.js:295:30)
    at c.create (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1334:125)
    at c.postscript (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1333:99)
    at new <anonymous> (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1158:192)
    at null.<anonymous> (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1263:435)
    at b.hitch (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:819:130)
    at e (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:766:337)
    at f.then.b.then [as then] (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:769:198)
    at l.openModule (http://10.200.27.40/univention-management-console/js_$20151011025729$/dojo/dojo.js:1261:412)"
Comment 2 Florian Best univentionstaff 2015-11-10 17:31:00 CET
*** Bug 39865 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Gohmann univentionstaff 2015-11-10 19:30:05 CET
I think we need to fix it for 4.1 and we should add a backport for 4.0-3 + 4.0-4.
Comment 4 Florian Best univentionstaff 2015-11-11 11:13:35 CET
this._ldapNameDeferred wasn't created yet in the case the detail page was opened via topic.publish / openObject property.

No changelog required.
Comment 5 Alexander Kramer univentionstaff 2015-11-11 13:08:08 CET
udm 6.0.11-1.632.201511111112
I reproduced the bug by the description of comment 1.
After the patch it's again possible to save the policy or cancel the site.

OK - Fix
OK - No changelog required.
Comment 6 Stefan Gohmann univentionstaff 2015-11-17 12:11:37 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

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