Bug 44202

Summary: Tracebacks when searching for portals and portal entries
Product: UCS Reporter: Florian Best <best>
Component: PortalAssignee: UMC maintainers <umc-maintainers>
Status: RESOLVED WORKSFORME QA Contact: UMC maintainers <umc-maintainers>
Severity: normal    
Priority: P5 CC: keiser
Version: UCS 4.2   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=40740
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?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: 2018032421000011 Bug group (optional): External feedback
Max CVSS v3 score:

Description Florian Best univentionstaff 2017-03-31 16:59:10 CEST
The search for portal and portal entries in UMC causes these errors:

Die Ausführung des Kommandos udm/nav/object/query navigation ist fehlgeschlagen:

Remark: search for portal and portal entry display name

Traceback(ee388012a53a77840fc0e48c219ccc4d): 
Traceback (most recent call last):
  File "%PY2.7%/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 545, in _thread
    result = module.search(container, objectProperty, objectPropertyValue, superordinate, scope=scope, hidden=hidden)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 86, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 476, in search
    result = self.module.lookup(None, ldap_connection, filter_s, base=container, superordinate=superordinate, scope=scope, sizelimit=sizelimit)
  File "%PY2.7%/univention/admin/handlers/settings/portal.py", line 242, in lookup
    univention.admin.filter.walk(filter_p, univention.admin.mapping.mapRewrite, arg=mapping)
  File "%PY2.7%/univention/admin/filter.py", line 220, in walk
    walk(e, expression_walk_function, conjunction_walk_function, arg)
  File "%PY2.7%/univention/admin/filter.py", line 225, in walk
    expression_walk_function(filter, arg)
  File "%PY2.7%/univention/admin/mapping.py", line 451, in mapRewrite
    v = mapping.mapValue(filter.variable, filter.value)
  File "%PY2.7%/univention/admin/mapping.py", line 287, in mapValue
    return map_value(value) if map_value else value
  File "%PY2.7%/univention/admin/handlers/settings/portal.py", line 189, in mapTranslationValue
    ret.append('%s %s' % (val[0], val[1]))
IndexError: string index out of range


Remark: search for portal entry - description

Traceback(1726b08c58d879de8b99da1f01cd7ceb): 
Traceback (most recent call last):
  File "%PY2.7%/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 545, in _thread
    result = module.search(container, objectProperty, objectPropertyValue, superordinate, scope=scope, hidden=hidden)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 86, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 476, in search
    result = self.module.lookup(None, ldap_connection, filter_s, base=container, superordinate=superordinate, scope=scope, sizelimit=sizelimit)
  File "%PY2.7%/univention/admin/handlers/settings/portal_entry.py", line 230, in lookup
    univention.admin.filter.walk(filter_p, univention.admin.mapping.mapRewrite, arg=mapping)
  File "%PY2.7%/univention/admin/filter.py", line 225, in walk
    expression_walk_function(filter, arg)
  File "%PY2.7%/univention/admin/mapping.py", line 451, in mapRewrite
    v = mapping.mapValue(filter.variable, filter.value)
  File "%PY2.7%/univention/admin/mapping.py", line 287, in mapValue
    return map_value(value) if map_value else value
  File "%PY2.7%/univention/admin/handlers/settings/portal_entry.py", line 187, in mapTranslationValue
    ret.append('%s %s' % (val[0], val[1]))
IndexError: string index out of range
Comment 1 Johannes Keiser univentionstaff 2018-03-29 19:36:07 CEST
Reported again: Version: 4.3-0 errata3 (Neustadt)
Comment 2 Florian Best univentionstaff 2019-03-14 18:24:31 CET
Looks fixed in UCS 4.4.