Univention Bugzilla – Bug 38635
udm/values fails with KeyError: 'syntax'
Last modified: 2016-03-18 06:46:05 CET
Received traceback, 4.0-2 errata205 (Walle): Execution of command 'udm/values users/user' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 282, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 648, in values result = module.get_default_values(property_name) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 392, in get_default_values value = read_syntax_choices(prop.syntax.name) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 163, in _decorated return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 146, in wrapper_func return _func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 139, in _func ret = func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 1500, in read_syntax_choices syntax = udm_syntax.LDAP_Search(options['syntax'], options['filter'], options['attributes'], options['base'], options['value'], options['viewonly'], options['empty'], options['empty_end']) KeyError: 'syntax'
*** Bug 29745 has been marked as a duplicate of this bug. ***
*** Bug 25222 has been marked as a duplicate of this bug. ***
Reported at Ticket#2016010721000381
Created attachment 7426 [details] patch
Problem occurs with every syntax based on LDAP_Search-syntax class. Reproduce: Open nagios module: Search for: Nagios object type: Nagios Service Property: Check period univention-management-console-module-udm (6.0.11-8): r67926 | Bug #38635: fix traceback when searching for specific values univention-management-console-module-udm.yaml: r67927 | YAML Bug #38635
What I tested: Tested the web interface. Tested umc-command: umc-command udm/values -o objectType="mail/folder" -o objectProperty="mailDomain" umc-command udm/values -o objectType="nagios/service" -o objectProperty="notificationPeriod" -> No more Tracebacks, list of possible values is returned Changes: OK YAML: OK
<http://errata.software-univention.de/ucs/4.1/133.html>