Bug 47910 - Regression: udm/query (dns/dns): IndexError: tuple index out of range
Regression: udm/query (dns/dns): IndexError: tuple index out of range
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - DNS
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-2-errata
Assigned To: Johannes Keiser
Dirk Wiesenthal
:
: 48046 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-10-04 12:39 CEST by Johannes Keiser
Modified: 2019-01-31 13:50 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 4: Will affect most installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.343
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support: Yes
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018101421000329, 2018101321000269, 2018101221000663, 2018101121000781, 2018101121000263, 2018101021001184, 2018100821000608, 2018100821000733, 2018092721000852, 2018092721000245, 2018092821000976, 2018092821000421, 2018101521000381, 2018101621000987
Bug group (optional): Error handling, 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 Johannes Keiser univentionstaff 2018-10-04 12:39:47 CEST
Version: 4.3-2 errata257 (Neustadt)

Internal server error during "udm/query (dns/dns)".
Request: udm/query (dns/dns)

  File "%PY2.7%/notifier/threads.py", line 78, 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 595, 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 84, 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 486, 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/dns/dns.py", line 102, in lookup
    ret += univention.admin.handlers.dns.srv_record.lookup(co, lo, filter_s, base, superordinate, scope, unique, required, timeout, sizelimit)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 1570, in lookup
    filter_s = cls.lookup_filter(filter_s, lo)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 1602, in lookup_filter
    filter_p.append_unmapped_filter_string(filter_s, cls.rewrite_filter, module.mapping)
  File "%PY2.7%/univention/admin/filter.py", line 82, in append_unmapped_filter_string
    walk(filter_p, rewrite_function, arg=mapping)
  File "%PY2.7%/univention/admin/filter.py", line 230, in walk
    walk(e, expression_walk_function, conjunction_walk_function, arg)
  File "%PY2.7%/univention/admin/filter.py", line 235, in walk
    expression_walk_function(filter, arg)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 1643, in rewrite_filter
    univention.admin.mapping.mapRewrite(filter, mapping, dont_map_value=dont_map_value)
  File "%PY2.7%/univention/admin/mapping.py", line 484, in mapRewrite
    v = filter.value if dont_map_value else mapping.mapValue(key, filter.value)
  File "%PY2.7%/univention/admin/mapping.py", line 298, in mapValue
    return map_value(value) if map_value else value
  File "%PY2.7%/univention/admin/handlers/dns/srv_record.py", line 114, in mapName
    return '_{0}._{1}'.format(*old[: 2])
IndexError: tuple index out of range

Role: domaincontroller_master
Comment 1 Johannes Keiser univentionstaff 2018-10-04 13:00:08 CEST
Reported again: Version: 4.3-2 errata257 (Neustadt)
Traceback: Same as Comment 0
Comment 3 Johannes Keiser univentionstaff 2018-10-04 13:06:27 CEST
Reported again: Version: 4.3-2 errata257 (Neustadt)
Traceback: Same as Comment 0

Remark: DNS Modul:  Es wird eine Suche im "Forward-Bereich" mit beliebigem Begriff z.B. "server" durchgeführt.
Comment 4 Johannes Keiser univentionstaff 2018-10-04 13:14:40 CEST
Bug #40672 fixed search filter creation for complex syntax classes.

Before Bug #40672 was fixed the mapName function in srv_record.py always got a string as parameter from a frontend search. Now that it gets a list this Traceback occurs.
Comment 5 Johannes Keiser univentionstaff 2018-10-10 18:17:36 CEST
Reported again: Version: 4.3-2 errata257 (Neustadt)

Remark: Hallo,

in der DNS Maske, wenn in der Suche etwas gesucht wird, kommt diese Fehlermeldung.
Ansonsten können die Daten auf der Konsole gesucht werden.

Traceback: Same as Comment 0
Comment 6 Johannes Keiser univentionstaff 2018-10-10 18:22:42 CEST
Reported again: Version: 4.3-2 errata264 (Neustadt)
Traceback: Same as Comment 0
Comment 7 Nico Stöckigt univentionstaff 2018-10-15 14:19:17 CEST
Reported again: Version: 4.3-2 errata270 (Neustadt)
Traceback: Same as Comment 0

testing env 10.200.42.10 - feel free
Comment 8 Johannes Keiser univentionstaff 2018-10-15 15:09:03 CEST
Reported again:
Version: 4.3-2 errata264 (Neustadt)

Version: 4.3-2 errata270 (Neustadt)

Version: 4.3-2 errata270 (Neustadt) - UCS@school 4.3 v5

Version: 4.3-2 errata270 (Neustadt)
Remark: error on web GUI during exploring DNS zone

Version: 4.3-2 errata270 (Neustadt) - UCS@school 4.3 v5

Version: 4.3-2 errata270 (Neustadt)

Traceback: Same as Comment 0
Comment 9 Stefan Gohmann univentionstaff 2018-10-17 06:37:45 CEST
It happens a lot.
Comment 10 Johannes Keiser univentionstaff 2018-10-17 20:22:28 CEST
Reported again:

Version: 4.3-2 errata270 (Neustadt)
Ticket#2018101621000021
Traceback: Same as Comment 0

Version: 4.3-2 errata281 (Neustadt)
Ticket#2018101721001671
Traceback: Same as Comment 0
Comment 11 Johannes Keiser univentionstaff 2018-10-17 20:23:19 CEST
c2fd2c39db Bug #47910: fix index out of range error when creating searchfilters
6c7ab8fa52 Bug #47910: Debian changelog entries
1c57c66194 Bug #47910: YAML - add entries
892eaf29fc Bug #47910: Merge branch 'jkeiser/4.3-2/47910/udm_query_index_out_of_range' into 4.3-2
f8cc8c573b Bug #47910: YAML - update version

Successful build
Package: univention-virtual-machine-manager-schema
Version: 8.0.0-3A~4.3.0.201810172013

Successful build
Package: univention-directory-manager-modules
Version: 13.0.25-3A~4.3.0.201810172015
Comment 12 Dirk Wiesenthal univentionstaff 2018-10-18 02:12:57 CEST
Ok, works again.
Comment 14 Johannes Keiser univentionstaff 2018-10-23 13:11:52 CEST
*** Bug 48046 has been marked as a duplicate of this bug. ***
Comment 15 Johannes Keiser univentionstaff 2018-12-20 15:29:38 CET
Reported again: Version: 4.3-2 errata270 (Neustadt)
Ticket#2018110521000568
Traceback: Same as Comment #0
Comment 16 Johannes Keiser univentionstaff 2019-01-31 13:50:59 CET
Reported again: Version: 4.3-2 errata255 (Neustadt)
Ticket#2019012521000761
Traceback: Same as Comment #0