Bug 42365 - TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError: 'NoneType' object has no attribute '__getitem__'
Status: RESOLVED DUPLICATE of bug 41609
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: ---
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-13 11:47 CEST by Florian Best
Modified: 2016-09-19 11:14 CEST (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:
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 Florian Best univentionstaff 2016-09-13 11:47:51 CEST
Version: 4.1-3 errata239 (Vahr)

Remark: Ich habe versucht einem "Lehrer und Mitarbeiter" ein neues Kennwort über das UMC Modul "Benutzer (Schule)" zu setzen. Passwort 2x in die entsprechenden Felder eingegeben,
auf "Save" geklickt (UMC war absichtlich auf Englisch), dann kam der Traceback

Traceback(21d44cf46d75ce7f8ecac8d90549e9c7):
Execution of command 'schoolwizards/users/put schoolwizards/users' has failed:

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 204, in _modify_obj
    obj.modify(ldap_user_write, validate=False)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 471, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 494, in modify_without_hooks
    self.do_modify(udm_obj, lo)
  File "%PY2.7%/ucsschool/lib/models/user.py", line 273, in do_modify
    classes = self.school_classes[school_group.school]
TypeError: 'NoneType' object has no attribute '__getitem__'
Comment 1 Florian Best univentionstaff 2016-09-13 11:58:51 CEST
I guess this is fixed by Bug #41609.

*** This bug has been marked as a duplicate of bug 41609 ***
Comment 2 Florian Best univentionstaff 2016-09-19 11:14:32 CEST
Reported again, 4.1-3 errata234 (Vahr)

Remark: Beim setzen des Passworts für ein Lehrer und Mitarbeiter Konto