Bug 34022 - Setting sambaLogonHours causes a udm traceback
Setting sambaLogonHours causes a udm traceback
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.1-1-errata
Assigned To: Dirk Wiesenthal
Florian Best
:
Depends on: 33703
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-31 09:03 CET by Tim Petersen
Modified: 2014-02-06 12:47 CET (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Petersen univentionstaff 2014-01-31 09:03:54 CET
Please backport this fix to UCS 3.1-1 (requested at 2014013021001929)


+++ This bug was initially created as a clone of Bug #33703 +++

A customer (Ticket #2013112621003776) set the LDAP attribute sambaLogonHours on the account tab selecting multiple entries.  After that, displaying the user using the udm command line is not possible anymore.  The following traceback occurs:

# udm users/user list --filter username=testuserunivention
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 237, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 394, in doit
    out=_doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 1138, in _doit
    out.append('  %s: %s' % ( _2utf8( key ), _2utf8( s.tostring( value ) ) ) )
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 250, in _2utf8
    return text.decode( 'iso-8859-1' )
AttributeError: 'list' object has no attribute 'decode'
Comment 1 Dirk Wiesenthal univentionstaff 2014-02-03 14:05:55 CET
Fixed in
  univention-directory-manager-modules 8.0.143-33.1168.201402031349
Comment 2 Dirk Wiesenthal univentionstaff 2014-02-03 16:03:00 CET
And in
  univention-management-console-frontend 2.0.244-19.818.201402031407

YAML created
Comment 3 Florian Best univentionstaff 2014-02-04 10:43:26 CET
OK
Comment 4 Moritz Muehlenhoff univentionstaff 2014-02-06 12:47:35 CET
http://errata.univention.de/ucs/3.1/213.html
Comment 5 Moritz Muehlenhoff univentionstaff 2014-02-06 12:47:43 CET
http://errata.univention.de/ucs/3.1/214.html