Bug 53276 - primary_group_sync_to_ucs: TypeError: 'NoneType' object is not subscriptable
primary_group_sync_to_ucs: TypeError: 'NoneType' object is not subscriptable
Status: NEW
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-05-18 07:53 CEST by Florian Best
Modified: 2021-08-12 12:06 CEST (History)
0 users

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 2021-05-18 07:53:27 CEST
The following exception happened once during our Jenkins Tests:

https://jenkins.knut.univention.de:8181/job/UCS-5.0/job/UCS-5.0-0/job/AutotestJoin/SambaVersion=s4,Systemrolle=backup/ws/test/connector-s4.log
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/s4connector/__init__.py", line 1478, in sync_to_ucs
    post_ucs_modify_function(self, property_type, object)
  File "/usr/lib/python3/dist-packages/univention/s4connector/s4/__init__.py", line 91, in primary_group_sync_to_ucs
    return connector.primary_group_sync_to_ucs(key, object)
  File "/usr/lib/python3/dist-packages/univention/s4connector/s4/__init__.py", line 1182, in primary_group_sync_to_ucs
    s4_group_rid = ldap_object_s4['primaryGroupID'][0].decode('UTF-8')
TypeError: 'NoneType' object is not subscriptable
Comment 1 Florian Best univentionstaff 2021-08-12 12:06:13 CEST
Similar traceback on a UCS@school 5.0 DC Slave:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/s4connector/__init__.py", line 822, in __sync_file_from_ucs
    if not self.sync_from_ucs(key, mapped_object, pre_mapped_ucs_dn, old_dn, old, new):
  File "/usr/lib/python3/dist-packages/univention/s4connector/s4/__init__.py", line 2105, in sync_from_ucs
    con_create_extension(self, property_type, object, addlist, ctrls)
  File "/usr/lib/python3/dist-packages/univention/s4connector/s4/__init__.py", line 121, in add_primary_group_to_addlist
    primary_group_sid = decode_sid(ldap_object_ad_group['objectSid'][0])
TypeError: 'NoneType' object is not subscriptable