Bug 40893

Summary: groups/group TypeError if adGroupType is None
Product: UCS Reporter: Florian Best <best>
Component: UMC - GroupsAssignee: UMC maintainers <umc-maintainers>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P5    
Version: UCS 4.1   
Target Milestone: UCS 4.1-x   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=40651
What kind of report is it?: --- 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): External feedback
Max CVSS v3 score:

Description Florian Best univentionstaff 2016-03-14 08:06:34 CET
We received the following traceback, 4.1-1 errata128 (Vahr)

Execution of command 'udm/put navigation' has failed:

Traceback (most recent call last):
  File "%PY2.7%/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 402, in _thread
    module.modify(properties)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 84, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 135, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 440, in modify
    obj.modify()
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 364, in modify
    return self._modify(modify_childs,ignore_license=ignore_license)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 817, in _modify
    self._ldap_pre_modify()
  File "%PY2.7%/univention/admin/handlers/groups/group.py", line 544, in _ldap_pre_modify
    self.check_ad_group_type_change()
  File "%PY2.7%/univention/admin/handlers/groups/group.py", line 1035, in check_ad_group_type_change
    if self._has_domain_local_member():
  File "%PY2.7%/univention/admin/handlers/groups/group.py", line 986, in _has_domain_local_member
    if self.__is_groupType_domain_local(groupType):
  File "%PY2.7%/univention/admin/handlers/groups/group.py", line 963, in __is_groupType_domain_local
    return int(adGroupType) & 0x4
TypeError: int() argument must be a string or a number, not 'NoneType'
Comment 1 Florian Best univentionstaff 2016-03-14 08:13:29 CET
This is probably (at least partly) fixed by Bug #40651?!
Comment 2 Stefan Gohmann univentionstaff 2019-01-03 07:19:43 CET
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.