Bug 44434 - KeyError: 'uid' when querying printjob users
KeyError: 'uid' when querying printjob users
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Printer administration
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.3-2-errata
Assigned To: Johannes Keiser
Dirk Wiesenthal
:
: 32134 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-21 12:32 CEST by Florian Best
Modified: 2020-06-22 15:43 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.114
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018060121000209, 2017030421000211, 2017081821000266
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-04-21 12:32:15 CEST
Version: 4.1-4 errata406 (Vahr)

Execution of command 'printers/users/query' has failed:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 281, in execute
    function(self, request)
  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 462, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/printers/__init__.py", line 167, in list_users
    return [ obj[1]["uid"][0] for obj in objs ]
KeyError: 'uid'
Comment 1 Florian Best univentionstaff 2017-07-13 14:51:37 CEST
Will be obsolete by fixing Bug #32134 instead.
Comment 2 Florian Best univentionstaff 2017-08-21 11:17:02 CEST
4.2-1 errata133 (Lesum)
Remark: cannot add users to print quota
Comment 3 Johannes Keiser univentionstaff 2018-07-16 16:41:57 CEST
Reported again:
Version: 4.3-0 errata89 (Neustadt)

Remark: Aufruf der Userliste im pykota Modul

Interner Server-Fehler in "printers/users/query".
Request: printers/users/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, 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/printers/__init__.py", line 168, in list_users
    return [obj[1]["uid"][0] for obj in objs]
KeyError: 'uid'

Role: domaincontroller_master
Comment 4 Johannes Keiser univentionstaff 2018-11-27 12:02:11 CET
41203c4ae0 Bug #44434: Fix printers/users/query
2907cfaf27 Bug #44434: YAML - add entry
84fdead27e Bug #44434: Debian changelog
ff2108e8d8 Bug #44434: Merge branch 'jkeiser/4.3-2/44434' into 4.3-2

Successful build
Package: univention-printserver
Version: 11.0.1-2A~4.3.0.201811271158
Comment 5 Johannes Keiser univentionstaff 2018-11-27 14:56:21 CET
85d9b81774 Bug #44434: use udm for printers/users/query
ba3640b422 Bug #44434: Debian changelog
1f114a2ee8 Bug #44434: YAML - update version

Successful build
Package: univention-printserver
Version: 11.0.1-3A~4.3.0.201811271454
Comment 6 Dirk Wiesenthal univentionstaff 2018-11-27 15:08:45 CET
Test added as
  tests/60_umc/51_printer_quota
Comment 7 Arvid Requate univentionstaff 2018-11-28 12:10:44 CET
<http://errata.software-univention.de/ucs/4.3/342.html>
Comment 8 Florian Best univentionstaff 2020-06-22 15:43:30 CEST
*** Bug 32134 has been marked as a duplicate of this bug. ***