Univention Bugzilla – Attachment 8315 Details for
Bug 43195
UMC tries to delete child objects on objects known to never have child objects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
43195.patch (text/plain), 1.64 KB, created by
Florian Best
on 2016-12-20 18:32:52 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-12-20 18:32:52 CET
Size:
1.64 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py b/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >index 3030134..0d140fb 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >@@ -937,7 +937,7 @@ def _move(self, newdn, modify_childs=1, ignore_license=0): > raise > > def _remove(self, remove_childs=0): >- univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'handlers/__init__._remove() called for %s' % self.dn) >+ univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'handlers/__init__._remove() called for %r with remove_childs=%r' % (self.dn, remove_childs)) > self.exceptions = [] > > if _prevent_to_change_ad_properties and self._is_synced_object(): >@@ -947,8 +947,10 @@ def _remove(self, remove_childs=0): > self.call_udm_property_hook('hook_ldap_pre_remove', self) > > if remove_childs: >- univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'handlers/__init__._remove() children of base dn %s' % self.dn) >- subelements = self.lo.search(base=self.dn, scope='one', attr=[]) >+ subelements = [] >+ if 'FALSE' not in self.lo.getAttr(self.dn, 'hasSubordinates'): >+ univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'handlers/__init__._remove() children of base dn %s' % (self.dn,)) >+ subelements = self.lo.search(base=self.dn, scope='one', attr=[]) > if subelements: > try: > for subolddn, suboldattrs in subelements:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43195
: 8315