Bug 41994 - ValueError: list.remove(x): x not in list
ValueError: list.remove(x): x not in list
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Ucsschool-lib
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2 v12
Assigned To: Florian Best
Daniel Tröder
:
Depends on:
Blocks: 44546
  Show dependency treegraph
 
Reported: 2016-08-15 16:00 CEST by Florian Best
Modified: 2017-06-23 13:33 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.171
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017042621000132, 2017042421000083, 2017042421000136
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:
best: Patch_Available+


Attachments
patch (512 bytes, patch)
2016-08-15 16:02 CEST, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-08-15 16:00:40 CEST
Reported twice:
Version: 4.1-3 errata234 (Vahr)

Traceback(547c86edd7a61cbf1868f31471c20750):
Die Ausführung des Kommandos schoolwizards/users/remove schoolwizards/users ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 283, in execute
    function(self, request)
  File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 112, in _decorated
    ret = func(self, request, *a, **kw)
  File "%PY2.7%/ucsschool/lib/schoolldap.py", line 140, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 252, in delete_user
    success = obj.remove_from_school(school, ldap_user_write)
  File "%PY2.7%/ucsschool/lib/models/user.py", line 439, in remove_from_school
    (self.schools or [school]).remove(school)
ValueError: list.remove(x): x not in list
Comment 1 Florian Best univentionstaff 2016-08-15 16:02:13 CEST
Created attachment 7870 [details]
patch
Comment 2 Florian Best univentionstaff 2017-04-27 11:54:44 CEST
Reported again, 4.1-4 errata410 (Vahr)
Comment 3 Florian Best univentionstaff 2017-04-27 11:56:05 CEST
Reported again, 4.1-4 errata410 (Vahr)

Remark: ich kann in dieser Schule keine Lehrer löschen. Bei anderen Schulen funktioniert es!
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2017-04-28 12:37:18 CEST
Please clone this bug for UCS 4.2 if the problem is still reproducible in 4.1 R2.
Comment 5 Florian Best univentionstaff 2017-05-05 13:41:49 CEST
ucs-school-lib (9.0.33-1):
r79118 | Bug #41994: fix an error during removing users from school

ucs-school-lib.yaml:
r79119 | YAML Bug #41994
Comment 6 Daniel Tröder univentionstaff 2017-05-22 09:44:54 CEST
see Bug #44546
Comment 7 Florian Best univentionstaff 2017-05-22 14:26:54 CEST
ucs-school-lib (9.0.33-3):
r79502 | Bug #41994: catch only ValueError
Comment 8 Daniel Tröder univentionstaff 2017-05-22 18:57:05 CEST
OK: code
r79525: update advisory
Comment 9 Sönke Schwardt-Krummrich univentionstaff 2017-06-23 13:33:12 CEST
UCS@school 4.1 R2 v12 has been released.

http://docs.software-univention.de/changelog-ucsschool-4.1R2v12-de.html

If this error occurs again, please clone this bug.