Univention Bugzilla – Bug 45096
univention.admin.objects.get() opens any DN with any module
Last modified: 2021-05-25 16:02:30 CEST
Using univention.admin.objects.get(wrong_module, dn=dn) with a wrong object-type for a specific DN or even initializing an wrong_module.object(dn=dn) doesn't raise an error currently. Since Bug #30368 there is a check if the object type matches which logs an error message if not. We should raise the univention.admin.uexceptions.wrongObjectType() exception instead. The change is an API change and should be done in the next minor release (or maybe patchlevel release). +++ This bug was initially created as a clone of Bug #30368 +++
I also got confused by getting a weird error because of this.
univention-directory-manager-modules (15.0.2-3) Bug #45096: check if object matches object type changelog-5.0-0.xml Changelog Bug #45096
BEFORE: udm computers/domaincontroller_backup modify --dn "$(ucr get ldap/hostdn)" --set description="$(date)" OK: The object type of this object differs from the specified object type: The object cn=m34,cn=dc,cn=computers,dc=phahn,dc=dev is not a computers/domaincontroller_backup. OK: udm computers/computer list OK: 51_invalid_ldap_users_robust.py FIXED: fa5d5bfa4946 -> 2f44980f7a74
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".