Bug 55353 - when removing a class raises primaryGroupUsed
when removing a class raises primaryGroupUsed
Status: RESOLVED DUPLICATE of bug 42364
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-10-27 13:39 CEST by Mika Westphal
Modified: 2022-11-03 12:10 CET (History)
1 user (show)

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: 2022102021000425
Bug group (optional): Error handling, 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 Mika Westphal univentionstaff 2022-10-27 13:39:39 CEST
This error had already a bug, but for an older version, and it was already closed #42364

Version: 4.1-5 errata502 (Vahr)

Error:
Die Ausführung des Kommandos schoolwizards/classes/remove schoolwizards/classes ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 281, in execute
    function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 190, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 122, in _decorated
    ret = func(self, request, *a, **kw)
  File "%PY2.7%/ucsschool/lib/schoolldap.py", line 145, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 256, in _delete_obj
    if obj.remove(ldap_user_write):
  File "%PY2.7%/ucsschool/lib/models/base.py", line 590, in remove
    success = self.remove_without_hooks(lo)
  File "%PY2.7%/ucsschool/lib/models/group.py", line 222, in remove_without_hooks
    success = super(SchoolClass, self).remove_without_hooks(lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 600, in remove_without_hooks
    udm_obj.remove(remove_childs=True)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 475, in remove
    return self._remove(remove_childs)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 952, in _remove
    self._ldap_pre_remove()
  File "%PY2.7%/univention/admin/handlers/groups/group.py", line 699, in _ldap_pre_remove
    raise univention.admin.uexceptions.primaryGroupUsed
primaryGroupUsed
Comment 1 Florian Best univentionstaff 2022-11-03 12:10:36 CET

*** This bug has been marked as a duplicate of bug 42364 ***