Bug 33343

Summary: delete selected item in tree fails
Product: UCS Reporter: Florian Best <best>
Component: UMC - LDAP directoryAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: gohmann, klaeser, walkenhorst, wiesenthal
Version: UCS 3.2   
Target Milestone: UCS 3.2-0-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):
Max CVSS v3 score:

Description Florian Best univentionstaff 2013-11-13 08:36:04 CET
When removing a container in the LDAP tree which is selected an exception occurs after submitting the 'Delete' dialog. The dialog doesn't get closed, the standby animation run infinite in the background. The LDAP object is deleted.

Uncaught TypeError: Cannot call method 'set' of undefined 

happens in the code block (udm.js +1291):
if (this._tree && this._tree.get('selectedItems')[0].id == ids[0]) {
…
    this._searchForm.getWidget('superordinate').set('value', 'None');
}
Comment 1 Florian Best univentionstaff 2013-11-13 08:39:29 CET
*The LDAP object is NOT deleted.
Comment 2 Alexander Kläser univentionstaff 2013-11-14 09:24:07 CET
Removing the selected tree item leads to
> Uncaught TypeError: Cannot call method 'set' of undefined
In udm.js +1292:
> this._searchForm.getWidget('superordinate').set('value', 'None');
Comment 3 Dirk Wiesenthal univentionstaff 2013-11-21 11:16:27 CET
Fixed in
  univention-management-console-module-udm 4.0.97-3.419.201311211107

YAML updated.

No changelog, not build for next version
Comment 4 Felix Botner univentionstaff 2013-11-28 16:17:56 CET
OK - could be reproduced
OK - fixed in ucs_3.2-0-errata3.2-0
OK - YAML
Comment 5 Janek Walkenhorst univentionstaff 2013-11-29 11:45:27 CET
http://errata.univention.de/ucs/3.2/3.html