Bug 28802 - Traceback bei UDM suche nach Samba Anmeldezeitraum
Traceback bei UDM suche nach Samba Anmeldezeitraum
Status: RESOLVED DUPLICATE of bug 28803
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 3.0
Other Linux
: P5 minor (vote)
: UCS 3.1-x
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-17 08:17 CEST by Florian Best
Modified: 2018-04-13 13:29 CEST (History)
3 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 Florian Best univentionstaff 2012-10-17 08:17:01 CEST
Request: {"container":"all","objectType":"users/user","objectProperty":"sambaLogonHours","objectPropertyValue":"48"}

Response:
  File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line 457, in _thread
    result = module.search( request.options.get( 'container' ), request.options[ 'objectProperty' ], request.options[ 'objectPropertyValue' ], superordinate, scope = request.options.get( 'scope', 'sub' ) )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 143, in wrapper_func
    ret = func( *args, **kwargs )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 403, in search
    return self.module.lookup( None, ldap_connection, filter_s, base = container, superordinate = superordinate, scope = scope )
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/user.py", line 2789, in lookup
    univention.admin.filter.walk(filter_p, rewrite, arg=mapping)
  File "/usr/lib/pymodules/python2.6/univention/admin/filter.py", line 206, in walk
    expression_walk_function(filter, arg)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/user.py", line 2764, in rewrite
    univention.admin.mapping.mapRewrite(filter, mapping)
  File "/usr/lib/pymodules/python2.6/univention/admin/mapping.py", line 218, in mapRewrite
    v=mapping.mapValue(filter.variable, filter.value)
  File "/usr/lib/pymodules/python2.6/univention/admin/mapping.py", line 146, in mapValue
    res=self._map[map_name][1](value)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/user.py", line 1030, in logonHoursMap
    bitstring = ''.join( map( lambda x: x in logontimes and '1' or '0', range( 168 ) ) )
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/user.py", line 1030, in <lambda>
    bitstring = ''.join( map( lambda x: x in logontimes and '1' or '0', range( 168 ) ) )

TypeError: 'in <string>' requires string as left operand, not int
Comment 1 Stefan Gohmann univentionstaff 2012-10-17 08:26:08 CEST
Das Attribut sollte nicht mehr suchbar sein.
Comment 2 Alexander Kläser univentionstaff 2012-10-17 11:37:11 CEST
Dann scheint das ein Duplicate zu sein.

*** This bug has been marked as a duplicate of bug 28803 ***