Bug 49081 - UnboundLocalError: local variable 'remove_element' referenced before assignment
UnboundLocalError: local variable 'remove_element' referenced before assignment
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: UMC - Groups
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-03-25 11:15 CET by Florian Best
Modified: 2022-02-21 13:31 CET (History)
0 users

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.