Bug 49879 - ucs-test: s4_members = s4_attrs.get('member'): AttributeError: 'NoneType' object has no attribute 'get'
ucs-test: s4_members = s4_attrs.get('member'): AttributeError: 'NoneType' obj...
Status: NEW
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
: 45079 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-07-19 19:44 CEST by Florian Best
Modified: 2020-07-16 18:43 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2019-07-19 19:44:05 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'
Comment 1 Florian Best univentionstaff 2020-07-16 09:44:16 CEST
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'
Comment 2 Florian Best univentionstaff 2020-07-16 15:59:05 CEST
*** Bug 45079 has been marked as a duplicate of this bug. ***
Comment 3 Florian Best univentionstaff 2020-07-16 15:59:51 CEST
comment #1 can be triggered with `ucs-test/tests/52_s4connector/172sync_ad_change_groupname`.