Univention Bugzilla – Bug 43150
simplePolicy.create() does not return DN of created object
Last modified: 2017-06-28 15:33:25 CEST
simplePolicy.create() does not return DN of created object. It returns always None. In contrast simpleLdap.create() always returns the DN of the new object. This causes UCS@school to create incorrect messages, e.g. "Created object None" and is IMHO problematic, since currently the DN of the new object can only be safely determined by a LDAP search.
Created attachment 8299 [details] Patch draft for create() It has to be checked if other methods like modify() are also affected.
Because of this there is workaround code in management/univention-directory-manager-modules/modules/univention/admincli/admin.py: 819 » » » » if not dn: 820 » » » » » dn = object.dn
The School Customer affected flag is set but neither a Ticket number is referenced nor a Customer ID is set. Please set a Ticket number or a Customer ID. Otherwise the School Customer affected flag will be reset.
r 80372 univention-directory-manager-modules (12.0.17-14) * Bug #43150: simplePoliy.create returns DN YAML: r 80379
r 80401 univention-directory-manager-modules (12.0.17-15) * Bug #43150: Remove unused class The class simpleLdapSub was also affected but it was not used. I removed simpleLdapSub.
Very nice.
<http://errata.software-univention.de/ucs/4.2/74.html>