Univention Bugzilla – Bug 51184
Traceback in UDM's DN encoders if list is empty
Last modified: 2020-05-06 14:40:03 CEST
from univention.udm import * udm = UDM.admin().version(2) dn = ... u = udm.get('users/user').get(dn) u.props.secretary.objs Results in Traceback (most recent call last): File "t.py", line 4, in <module> u.props.secretary.objs AttributeError: 'list' object has no attribute 'objs' although the "secretary" property is defined as dn_list_property_encoder_for('users/user') The problem occurs if there is no secretary information in LDAP, thus the value is None during decoding.
Fixed in univention-directory-manager-modules (14.0.15-4)
Added a test 59_udm/60_udm_api_encoders.py
OK: fix OK: YAML
<http://errata.software-univention.de/ucs/4.4/589.html>