Univention Bugzilla – Bug 48518
Can't edit school computers
Last modified: 2023-06-23 13:01:52 CEST
Can't edit school computers How to reproduce: Add a school computer -> Save -> Edit e.g by adding an inventory number This might be a problem in 4.3 with roles enabled as well. Internal server error during "schoolwizards/computers/put (schoolwizards/computers)". Request: schoolwizards/computers/put (schoolwizards/computers) Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 253, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolwizards/__init__.py", line 122, in _decorated ret = func(self, request, *a, **kw) File "/usr/lib/pymodules/python2.7/ucsschool/lib/schoolldap.py", line 145, in wrapper_func return func(*args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolwizards/__init__.py", line 235, in _modify_obj obj.modify(ldap_user_write, validate=False) File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/base.py", line 518, in modify success = self.modify_without_hooks(lo, validate, move_if_necessary) File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/computer.py", line 220, in modify_without_hooks return super(SchoolComputer, self).modify_without_hooks(lo, validate, move_if_necessary) File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/base.py", line 541, in modify_without_hooks self.modify_without_hooks_roles(udm_obj) File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/base.py", line 1080, in modify_without_hooks_roles old_schools = set(self.get_schools_from_udm_obj(udm_obj)) File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/base.py", line 1014, in get_schools_from_udm_obj return udm_obj.info['school'] KeyError: 'school'
This might have been introduced in bug 48226.
I cannot reproduce this (anymore?).
This issue has been filed against UCS 4.4. UCS 4.4 is out of maintenance and UCS components may have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.