Univention Bugzilla – Bug 43624
App Center's UDM utils still use .exists() when noObject is raised before
Last modified: 2017-04-04 18:30:08 CEST
Remove those lines with .exists() and rely solely on except noObject. +++ This bug was initially created as a clone of Bug #38110 +++ 2015030721000058 # udm groups/group modify --dn "cn=notexistingobject,$ldap_base" --policy-reference="cn=default-umc-all,cn=UMC,cn=policies,$ldap_base" Traceback (most recent call last): File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 222, in doit output = univention.admincli.admin.doit(arglist) File "/usr/lib/pymodules/python2.7/univention/admincli/admin.py", line 393, in doit out=_doit(arglist) File "/usr/lib/pymodules/python2.7/univention/admincli/admin.py", line 1042, in _doit if 'univentionPolicyReference' not in lo.get(dn,['objectClass'])['objectClass']: KeyError: 'objectClass' # udm users/user modify --dn "cn=notexistingobject,$ldap_base" --policy-reference="cn=default-umc-all,cn=UMC,cn=policies,$ldap_base" Value is required: The property Primary group is required # udm container/dc modify --dn "dc=notexistingobject,$ldap_base" --policy-reference="cn=default-umc-all,cn=UMC,cn=policies,$ldap_base" No such object: No such object Please also see bug38109
Fixed in r77053 (with an unfortunate SVN message)
This seems not enough: ApplicationLDAPObject._reload() is also affected.
Fixed in univention-appcenter 6.0.1-38A~4.2.0.201702231620
LGTM
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".