Univention Bugzilla – Bug 41996
KeyError: 'school'
Last modified: 2019-02-05 21:43:40 CET
Version: 4.1-2 errata211 (Vahr) Traceback(2691ce7c60ccfe551998f6f7f8003f86): Die Ausführung des Kommandos printermoderation/query 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/decorators.py", line 190, in _response return function(self, request) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 140, in wrapper_func return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/printermoderation/__init__.py", line 135, in query students = self._users(ldap_user_read, request.options['school'], group=klass, user_type='student', pattern=request.options.get('pattern', '')) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 439, in _users users = cls.get_all(ldap_connection, school, LDAP_Filter.forUsers(pattern)) File "%PY2.7%/ucsschool/lib/models/base.py", line 726, in get_all ret.append(cls.from_udm_obj(udm_obj, school, lo)) File "%PY2.7%/ucsschool/lib/models/user.py", line 207, in from_udm_obj obj = super(User, cls).from_udm_obj(udm_obj, school, lo) File "%PY2.7%/ucsschool/lib/models/base.py", line 782, in from_udm_obj udm_value = udm_obj[attr.udm_name] File "%PY2.7%/univention/admin/handlers/__init__.py", line 264, in __getitem__ elif not key in self.__no_default and self.descriptions[key].editable: KeyError: 'school'
This issue has been filled against UCS@school 4.1 (R2). The maintenance with bug and security fixes for UCS@school 4.1 (R2) has ended on 5th of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3 (or later). Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.