Bug 41996 - KeyError: 'school'
KeyError: 'school'
Status: RESOLVED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: UMC - Printermoderation
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-15 16:09 CEST by Florian Best
Modified: 2019-02-05 21:43 CET (History)
0 users

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): 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 Florian Best univentionstaff 2016-08-15 16:09:44 CEST
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'
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2019-02-05 21:43:40 CET
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.