Bug 57487 - computerroom/room/acquire: KeyError: 'ucsschoolRole'
computerroom/room/acquire: KeyError: 'ucsschoolRole'
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: UMC - Computer room administration
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2024-07-31 13:40 CEST by Mika Westphal
Modified: 2024-07-31 13:42 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.086
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2024072321000119, 2024071221000014
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 Mika Westphal univentionstaff 2024-07-31 13:40:51 CEST
Version: 5.0-5 errata897 - UCS@school 5.0 v4

Error:
Interner Server-Fehler in "computerroom/room/acquire".
Request: computerroom/room/acquire

Traceback (most recent call last):
  File "%PY3%/univention/management/console/base.py", line 387, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/base.py", line 285, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY3%/univention/management/console/modules/decorators.py", line 189, in _response
    return function(self, request)
  File "%PY3%/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func
    return func(*args, **kwargs)
  File "%PY3%/univention/management/console/modules/computerroom/__init__.py", line 454, in room_acquire
    success, message, info = self._room_acquire(request, roomDN, ldap_user_read)
  File "%PY3%/univention/management/console/modules/computerroom/__init__.py", line 425, in _room_acquire
    self._computerroom.room = roomDN
  File "%PY3%/univention/management/console/modules/computerroom/room_management.py", line 232, in room
    self._set(value)
  File "%PY3%/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func
    return func(*args, **kwargs)
  File "%PY3%/univention/management/console/modules/computerroom/room_management.py", line 320, in _set
    computers = list(computerroom.get_computers(lo))
  File "%PY3%/ucsschool/lib/models/group.py", line 399, in get_computers
    yield SchoolComputer.from_dn(host, self.school, ldap_connection)
  File "%PY3%/ucsschool/lib/models/base.py", line 1106, in from_dn
    return cls.from_udm_obj(udm_obj, school, lo)
  File "%PY3%/ucsschool/lib/models/computer.py", line 424, in from_udm_obj
    obj = super(SchoolComputer, cls).from_udm_obj(udm_obj, school, lo)
  File "%PY3%/ucsschool/lib/models/base.py", line 1017, in from_udm_obj
    return klass.from_udm_obj(udm_obj, school, lo)
  File "%PY3%/ucsschool/lib/models/computer.py", line 424, in from_udm_obj
    obj = super(SchoolComputer, cls).from_udm_obj(udm_obj, school, lo)
  File "%PY3%/ucsschool/lib/models/base.py", line 1027, in from_udm_obj
    udm_value = udm_obj[attr.udm_name]
  File "%PY3%/univention/admin/handlers/__init__.py", line 479, in __getitem__
    elif key not in self.__no_default and self.descriptions[key].editable:
KeyError: 'ucsschoolRole'

Role: domaincontroller_slave