Univention Bugzilla – Bug 49879
ucs-test: s4_members = s4_attrs.get('member'): AttributeError: 'NoneType' object has no attribute 'get'
Last modified: 2020-07-16 18:43:46 CEST
attachment 10121 [details] (s4connector.log from a ucs-test run) contains 3 times: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/univention/s4connector/__init__.py", line 910, in __sync_file_from_ucs if ((old_dn and not self.sync_from_ucs(key, mapped_object, pre_mapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, mapped_object, pre_mapped_ucs_dn, old_dn, old, new))): File "/usr/lib/python2.7/dist-packages/univention/s4connector/s4/__init__.py", line 2754, in sync_from_ucs f(self, property_type, object) File "/usr/lib/python2.7/dist-packages/univention/s4connector/s4/__init__.py", line 97, in primary_group_sync_from_ucs return s4connector.primary_group_sync_from_ucs(key, object) File "/usr/lib/python2.7/dist-packages/univention/s4connector/s4/__init__.py", line 1543, in primary_group_sync_from_ucs s4_members = self.get_s4_members(s4_group_object['dn'], ldap_object_s4_group) File "/usr/lib/python2.7/dist-packages/univention/s4connector/s4/__init__.py", line 1179, in get_s4_members s4_members = s4_attrs.get('member') AttributeError: 'NoneType' object has no attribute 'get'
And the opposite version (group_members_sync_to_ucs): 63 times: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/univention/s4connector/__init__.py", line 1568, in sync_to_ucs f(self, property_type, object) File "/usr/lib/python2.7/dist-packages/univention/s4connector/s4/__init__.py", line 95, in group_members_sync_to_ucs return s4connector.group_members_sync_to_ucs(key, object) File "/usr/lib/python2.7/dist-packages/univention/s4connector/s4/__init__.py", line 1838, in group_members_sync_to_ucs ucs_members = set(ldap_object_ucs.get('uniqueMember', [])) AttributeError: 'NoneType' object has no attribute 'get'
*** Bug 45079 has been marked as a duplicate of this bug. ***
comment #1 can be triggered with `ucs-test/tests/52_s4connector/172sync_ad_change_groupname`.