Univention Bugzilla – Bug 37840
Traceback in computer room UMC module when deactivating printing
Last modified: 2017-06-23 13:32:27 CEST
Created attachment 6698 [details] vunset.patch The following traceback occurred in the computerroom UMC module when changed the print mode for a room from default (global settings) to deactivated and clicked on the "set" (save) button: ============================================================================ Die Ausführung des Kommandos computerroom/settings/set ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py", line 176, in _decorated return function(self, request, *args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/computerroom/__init__.py", line 192, in _decorated return func(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/computerroom/__init__.py", line 781, in settings_set del vunset[varname] TypeError: list indices must be integers, not str ============================================================================ It's true, vunset is an array, not a dictionary. The attached patch fixed the problem for me.
Still unfixed.
Occurred again.
Applied that patch. ucs-school-umc-computerroom.yaml: r79978 | YAML Bug #37840 ucs-school-umc-computerroom (9.0.8-1): r79977 | Bug #37840: fix syntax error
OK: code OK: advisory
UCS@school 4.2 v2 has been released. http://docs.software-univention.de/changelog-ucsschool-4.2v2-de.html If this error occurs again, please clone this bug.