Bug 35174 - Related objects are not deleted
Related objects are not deleted
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: UCS@school 3.2 R2 Errata
Assigned To: Dirk Wiesenthal
Florian Best
:
Depends on:
Blocks: 35665
  Show dependency treegraph
 
Reported: 2014-06-20 11:53 CEST by Jan Christoph Ebersbach
Modified: 2014-08-27 17:01 CEST (History)
5 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):
Max CVSS v3 score:


Attachments
udm_objects.performCleanup(udm_obj) (402 bytes, patch)
2014-06-20 12:45 CEST, Dirk Wiesenthal
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Christoph Ebersbach univentionstaff 2014-06-20 11:53:56 CEST
If a computer object is created and later on deleted, through the wizard, related objects for DHCP and DNS are not deleted.
Comment 1 Dirk Wiesenthal univentionstaff 2014-06-20 12:45:28 CEST
Created attachment 5968 [details]
udm_objects.performCleanup(udm_obj)

Patch is simply adding udm_objects.performCleanup(udm_obj) in remove() of the base model. Also affects users, classes, schools (and eventually othter models) but this is most probably desired.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2014-06-20 14:12:18 CEST
Is there currently a real problem or is it only a "cosmetic" patch.
Comment 3 Jan Christoph Ebersbach univentionstaff 2014-06-23 09:13:10 CEST
It's are real issue.  In this case the customer is using a sophisticated PXE boot setup that simple doesn't work if related objects aren't deleted.

In general this issue leads to a lot of clutter in the LDAP that'll make debugging more difficult.
Comment 4 Arvid Requate univentionstaff 2014-06-23 11:04:43 CEST
See also Bug 20646 and Bug 26310.
Comment 5 Dirk Wiesenthal univentionstaff 2014-08-19 23:53:11 CEST
ucs-school-umc-wizards 4.0.31-2
Comment 6 Florian Best univentionstaff 2014-08-20 15:52:57 CEST
OK: Related objects (DHCP, DNS, …) are now removed.
OK: Changelog
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2014-08-27 17:01:42 CEST
UCS@school 3.2 R2 v2 has been released:
http://docs.univention.de/release-notes-ucsschool-3.2R2v2-de.html

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