Bug 38635

Summary: udm/values fails with KeyError: 'syntax'
Product: UCS Reporter: Florian Best <best>
Component: UMC (Generic)Assignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Jürn Brodersen <brodersen>
Severity: normal    
Priority: P5 CC: geerds, gohmann, meybohm
Version: UCS 4.0Flags: best: Patch_Available+
Target Milestone: UCS 4.1-1-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=40740
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): Error handling, External feedback
Max CVSS v3 score:
Attachments: patch

Description Florian Best univentionstaff 2015-06-01 16:45:12 CEST
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'
Comment 1 Florian Best univentionstaff 2016-01-22 14:07:54 CET
*** Bug 29745 has been marked as a duplicate of this bug. ***
Comment 2 Florian Best univentionstaff 2016-01-22 14:07:58 CET
*** Bug 25222 has been marked as a duplicate of this bug. ***
Comment 3 Florian Best univentionstaff 2016-01-22 14:08:58 CET
Reported at Ticket#2016010721000381
Comment 4 Florian Best univentionstaff 2016-01-22 14:47:10 CET
Created attachment 7426 [details]
patch
Comment 5 Florian Best univentionstaff 2016-03-04 15:53:35 CET
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
Comment 6 Jürn Brodersen univentionstaff 2016-03-14 13:55:02 CET
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
Comment 7 Florian Best univentionstaff 2016-03-18 06:46:05 CET
<http://errata.software-univention.de/ucs/4.1/133.html>