Univention Bugzilla – Bug 35925
Not possible to search for settings/printermodel (Printer Driver List)
Last modified: 2017-07-05 13:06:13 CEST
Traceback: 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 509, in _thread result = module.search( request.options.get( 'container' ), request.options[ 'objectProperty' ], request.options[ 'objectPropertyValue' ], superordinate, scope = request.options.get( 'scope', 'sub' ), hidden=request.options.get('hidden') ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 184, in wrapper_func ret = func( *args, **kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 471, in search result = self.module.lookup( None, ldap_connection, filter_s, base = container, superordinate = superordinate, scope = scope, sizelimit = sizelimit ) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/settings/printermodel.py", line 130, in lookup univention.admin.filter.walk(filter_p, univention.admin.mapping.mapRewrite, arg=mapping) File "/usr/lib/pymodules/python2.6/univention/admin/filter.py", line 207, in walk walk(e, expression_walk_function, conjunction_walk_function, arg) File "/usr/lib/pymodules/python2.6/univention/admin/filter.py", line 212, in walk expression_walk_function(filter, arg) File "/usr/lib/pymodules/python2.6/univention/admin/mapping.py", line 253, in mapRewrite v=mapping.mapValue(filter.variable, filter.value) File "/usr/lib/pymodules/python2.6/univention/admin/mapping.py", line 181, in mapValue res=self._map[map_name][1](value) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/settings/printermodel.py", line 96, in mapDriverList str.append('"%s" "%s"' % ( i[ 0 ], i[ 1 ] ) ) IndexError: string index out of range Remark: Suche im LDAP Baum: Univention:cups, Typ: Druckertreiberliste, Standardeigenschaften, Suchstring: Kyocera Reproducible with every search string, the logs contain: Searching for LDAP objects: container = dc=system,dc=setup, filter = (|(name=*Kyocera*)(printmodel=*Kyocera*)), superordinate = None #### mapDriverList: '*Kyocera*' Also reproducible on CLI with the command: udm settings/printermodel list --filter 'printmodel=*Kyocera*' Maybe there is a call to unmapDriverList missing or something?
Created attachment 7548 [details] patch
(In reply to Florian Best from comment #1) > Created attachment 7548 [details] > patch Applied rebased patch: r 80684 univention-directory-manager-modules (12.0.17-39) * Bug #35925: Applied patch from Florian Best - Fix traceback when searching for printmodel property on settings/printermodel YAML: r 80686
OK: searching in UMC for the printmodel works OK: YAML (adjusted in 80687)
<http://errata.software-univention.de/ucs/4.2/79.html>