Bug 43048 - DHCP Hosts underneath of containers aren't shown in UMC
DHCP Hosts underneath of containers aren't shown in UMC
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - DHCP
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-4-errata
Assigned To: Florian Best
Stefan Gohmann
:
Depends on:
Blocks: 33317 43423
  Show dependency treegraph
 
Reported: 2016-11-24 14:26 CET by Florian Best
Modified: 2017-04-21 10:03 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a 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.046
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016112421000286
Bug group (optional): External feedback, Usability, Workaround is available
Max CVSS v3 score:
best: Patch_Available+


Attachments
patch (1.79 KB, patch)
2016-11-24 14:26 CET, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-11-24 14:26:09 CET
Created attachment 8240 [details]
patch

DHCP Hosts underneath of containers aren't shown in the DHCP UMC module. They are shown in the LDAP Navigation.

This is because the backend sets the search base to the superordinate dn and searches with scope = 'one' - which can't give any results if the objects are in subcontainers.

Attached is a patch.
Comment 1 Florian Best univentionstaff 2017-01-25 17:30:14 CET
univention-management-console-module-udm (6.0.11-36):
r76101 | Bug #43048: fix containers underneath of superordinate objects

univention-management-console-module-udm.yaml:
r76106 | YAML Bug #43423 Bug #43048

UCS 4.2 merge:
univention-management-console-module-udm (7.0.3-3):
r76104 | Bug #43048: fix containers underneath of superordinate objects
Comment 2 Stefan Gohmann univentionstaff 2017-02-13 08:22:45 CET
It basically works but if I select the container and try to add a new object, I get the following traceback:

Die Ausführung des Kommandos udm/add dhcp/dhcp ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/__init__.py", line 367, in _thread
    dn = module.create(properties, container=options.get('container'), superordinate=options.get('superordinate'))
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 86, in _decorated
    return method(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/ldap.py", line 141, in _decorated
    result = func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 386, in create
    obj.create()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 306, in create
    return self._create()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 711, in _create
    self._ldap_pre_create()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 500, in _ldap_pre_create
    self.dn = self._ldap_dn()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 506, in _ldap_dn
    identifier.append((self.mapping.mapName(name), self.mapping.mapValue(name, self.info[name]), 2))
  File "/usr/lib/pymodules/python2.7/univention/admin/mapping.py", line 278, in mapValue
    map_value = self._map[map_name][1]
KeyError: 'name'
Comment 3 Florian Best univentionstaff 2017-02-13 12:52:33 CET
univention-management-console-module-udm (6.0.11-38):
r76619 | Bug #43048: fix creation of objects having a superordinate in subcontainers of the superordinate

univention-management-console-module-udm (7.0.4-3):
r76620 | Bug #43048: fix creation of objects having a superordinate in subcontainers of the superordinate
Comment 4 Stefan Gohmann univentionstaff 2017-02-14 07:20:38 CET
Tests: OK, it works now

Changelog: I've changed it a little bit: r76642

UCS 4.2 merge: OK
Comment 5 Janek Walkenhorst univentionstaff 2017-02-15 14:57:44 CET
<http://errata.software-univention.de/ucs/4.1/395.html>