Univention Bugzilla – Bug 44721
printers/quota/reset: TypeError: coercing to Unicode: need string or buffer, NoneType found
Last modified: 2018-03-14 14:38:46 CET
Version: 4.2-0 errata25 (Lesum) Remark: Ein reset des zählers löst diesen fehler aus, unabhängig ob ein oder mehrere benutzter ausgewählt sind Die Ausführung des Kommandos printers/quota/reset ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 249, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/decorators.py", line 592, in _response result = function(self, *args) File "%PY2.7%/univention/management/console/modules/printers/__init__.py", line 207, in reset_quota return self._reset_quota(printer, users) File "%PY2.7%/univention/management/console/modules/printers/__init__.py", line 320, in _reset_quota (stdout, stderr, status) = self._shell_command(cmd, {'LANG': 'C'}) File "%PY2.7%/univention/management/console/modules/printers/__init__.py", line 367, in _shell_command proc = subprocess.Popen(args=args, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception TypeError: coercing to Unicode: need string or buffer, NoneType found
Reported again: Version: 4.2-3 errata284 (Lesum) Remark: "Quota zurücksetzen" scheitert mit obiger Fehlermeldung.
fixed, very small change, i have tests this, code review is enough univention-printserver 0fe7b7ffc193088ddda8756c3c132e033068270e
OK, looks good.
UCS 4.3 has been released: https://docs.software-univention.de/release-notes-4.3-0-en.html https://docs.software-univention.de/release-notes-4.3-0-de.html If this error occurs again, please use "Clone This Bug".