Bug 33343 - delete selected item in tree fails
Summary: delete selected item in tree fails
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC - LDAP directory
Version: UCS 3.2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 3.2-0-errata
Assignee: Dirk Wiesenthal
QA Contact: Felix Botner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-13 08:36 CET by Florian Best
Modified: 2013-11-29 11:45 CET (History)
4 users (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):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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