Bug 49496 - ox Hooks for default values causes KeyError: 'oxDisplayName'
ox Hooks for default values causes KeyError: 'oxDisplayName'
Status: NEW
Product: Z_Internal OX development
Classification: Unclassified
Component: UDM
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Mail maintainers
:
Depends on: 48979
Blocks:
  Show dependency treegraph
 
Reported: 2019-05-16 17:12 CEST by Johannes Keiser
Modified: 2019-05-17 09:40 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 7: Crash: Bug causes crash or data loss
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.200
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019041221000281
Bug group (optional):
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 2019-05-16 17:12:20 CEST
+++ This bug was initially created as a clone of Bug #48979 +++

Reported again with a higher version.

Version: 4.4-0 errata47 (Blumenthal)

Interner Server-Fehler in "udm/put (users/user)".
Request: udm/put (users/user)

  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 428, in _thread
    module.modify(properties)
  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 612, in modify
    obj.modify()
  File "%PY2.7%/univention/admin/handlers/users/user.py", line 1674, in modify
    return super(object, self).modify(*args, **kwargs)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 635, in modify
    dn = self._modify(modify_childs, ignore_license=ignore_license, response=response)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 1269, in _modify
    self.call_udm_property_hook('hook_ldap_pre_modify', self)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 1032, in call_udm_property_hook
    func(module)
  File "%PY2.7%/univention/admin/hooks.d/oxUserDefaults.py", line 101, in hook_ldap_pre_modify
    if ox_display_name_old == module.info['oxDisplayName'] and ox_display_name_new != module.info['oxDisplayName']:
KeyError: 'oxDisplayName'

Role: domaincontroller_master
Comment 1 Ingo Steuwer univentionstaff 2019-05-17 08:41:16 CEST
Relevant is the version of the OX App, not the UCS errata level. What was the version of the OX App in your tests?

Bug #48979 was fixed in App release 7.10.1-ucs4 released 2019/04/12