Bug 56617 - schoolwizards/users/remove (schoolwizards/users): AttributeError: 'NoneType' object has no attribute 'lower'
schoolwizards/users/remove (schoolwizards/users): AttributeError: 'NoneType' ...
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-09-18 12:33 CEST by Mika Westphal
Modified: 2023-09-18 15:33 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
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: 2023082321000084
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 Mika Westphal univentionstaff 2023-09-18 12:33:39 CEST
5.0-4 errata783 - UCS@school 5.0 v4

Interner Server-Fehler in "schoolwizards/users/remove (schoolwizards/users)".
Request: schoolwizards/users/remove (schoolwizards/users)

Traceback (most recent call last):
  File "%PY3%/univention/management/console/base.py", line 387, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/base.py", line 285, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY3%/univention/management/console/modules/decorators.py", line 189, in _response
    return function(self, request)
  File "%PY3%/univention/management/console/modules/schoolwizards/__init__.py", line 241, in _decorated
    ret = func(self, request, *a, **kw)
  File "%PY3%/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func
    return func(*args, **kwargs)
  File "%PY3%/univention/management/console/modules/schoolwizards/__init__.py", line 538, in delete_user
    success = obj.modify(ldap_user_write)
  File "%PY3%/ucsschool/lib/models/user.py", line 326, in modify
    return super(User, self).modify(lo=lo, validate=validate, move_if_necessary=move_if_necessary)
  File "%PY3%/ucsschool/lib/models/base.py", line 619, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY3%/ucsschool/lib/models/base.py", line 634, in modify_without_hooks
    self.validate(lo, validate_unlikely_changes=True)
  File "%PY3%/ucsschool/lib/models/user.py", line 466, in validate
    lo, validate_unlikely_changes=validate_unlikely_changes, check_name=check_name
  File "%PY3%/ucsschool/lib/models/base.py", line 396, in validate
    if self.exists_outside_school(lo):
  File "%PY3%/ucsschool/lib/models/base.py", line 456, in exists_outside_school
    return not udm_obj.dn.lower().endswith(School.cache(self.school).dn.lower())
AttributeError: 'NoneType' object has no attribute 'lower'