Bug 49081

Summary: UnboundLocalError: local variable 'remove_element' referenced before assignment
Product: UCS Reporter: Florian Best <best>
Component: UMC - GroupsAssignee: UMC maintainers <umc-maintainers>
Status: RESOLVED WORKSFORME QA Contact: UMC maintainers <umc-maintainers>
Severity: normal    
Priority: P5    
Version: UCS 4.4   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=41694
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: 2019032521000267 Bug group (optional): External feedback
Max CVSS v3 score:

Description Florian Best univentionstaff 2019-03-25 11:15:05 CET
Version: 4.4-0 errata11 (Blumenthal)

Internal server error during "udm/put (groups/group)".
Request: udm/put (groups/group)

  File "%PY2.7%/notifier/threads.py", line 78, 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 431, in _thread
    module.modify(properties)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 87, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 729, in modify
    obj.modify()
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 635, in modify
    dn = self._modify(modify_childs, ignore_license=ignore_license, response=response)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 1287, in _modify
    self._ldap_post_modify()
  File "%PY2.7%/univention/admin/handlers/groups/group.py", line 695, in _ldap_post_modify
    self.__update_membership()
  File "%PY2.7%/univention/admin/handlers/groups/group.py", line 795, in __update_membership
    newmembers = self.__case_insensitive_remove_from_list(self.dn, newmembers)
  File "%PY2.7%/univention/admin/handlers/groups/group.py", line 849, in __case_insensitive_remove_from_list
    list.remove(remove_element)
UnboundLocalError: local variable 'remove_element' referenced before assignment
Comment 1 Florian Best univentionstaff 2022-02-21 13:31:31 CET
Code has been removed during Python 3 migration.