Bug 44721 - printers/quota/reset: TypeError: coercing to Unicode: need string or buffer, NoneType found
printers/quota/reset: TypeError: coercing to Unicode: need string or buffer,...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Printers
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Felix Botner
Stefan Gohmann
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-01 10:02 CEST by Florian Best
Modified: 2018-03-14 14:38 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018021221000722, 2017053121000308
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 2017-06-01 10:02:37 CEST
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
Comment 1 Johannes Keiser univentionstaff 2018-02-16 14:25:57 CET
Reported again: Version: 4.2-3 errata284 (Lesum)

Remark: "Quota zurücksetzen" scheitert mit obiger Fehlermeldung.
Comment 2 Felix Botner univentionstaff 2018-03-12 11:09:40 CET
fixed, very small change, i have tests this, code review is enough

univention-printserver
0fe7b7ffc193088ddda8756c3c132e033068270e
Comment 3 Stefan Gohmann univentionstaff 2018-03-12 16:01:40 CET
OK, looks good.
Comment 4 Stefan Gohmann univentionstaff 2018-03-14 14:38:46 CET
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".