Bug 33614 - Wrong mapping for dhcpOption
Wrong mapping for dhcpOption
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - DHCP
UCS 4.2
All Linux
: P5 normal (vote)
: UCS 4.1-3-errata
Assigned To: Florian Best
Philipp Hahn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-29 07:58 CET by Stefan Gohmann
Modified: 2016-11-03 11:32 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
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.069
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
best: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2013-11-29 07:58:23 CET
From Bug #33223, the mapping of the dhcp options is wrong:

> 
> 3. The mapping is wrong: the attribute is multi-valued:
>  _properties = {
>         'option': univention.admin.property(
> ...
>                 multivalue=True,
> ...
>  _mappings = (
>         ( 'option', 'dhcpOption', None,
> univention.admin.mapping.ListToString ),

+++ This bug was initially created as a clone of Bug #33223 +++
Comment 1 Florian Best univentionstaff 2016-03-03 13:20:49 CET
patch is bd30fe035001e869c187d1479e6ecda2e3d5a206 in attachment 5666 [details]
Comment 2 Florian Best univentionstaff 2016-10-13 18:31:52 CEST
Single-line-fix done.

univention-directory-manager-modules (11.0.3-36):
r73169 | Bug #33614: fix mapping of DHCP options

univention-directory-manager-modules (12.0.4-2):
r73157 | Bug #33614: fix mapping of DHCP options
Comment 3 Philipp Hahn univentionstaff 2016-10-17 15:36:59 CEST
OK: r73169
OK: r73169

OK: aptitude install '?source-package(univention-directory-manager-modules)~i' # 11.0.3-36.1430.201610131831

OK: udm dhcp/service modify --dn "$(udm dhcp/service list|sed -ne 's/^DN: //p;T;q')" --append option='ntp-servers 192.168.0.240' --append option='smtp-server mail.univention.de'
OK: univention-ldapsearch -LLLo ldif-wrap=no -s base -b "$(udm dhcp/service list|sed -ne 's/^DN: //p;T;q')" dhcpOption

OK: univention-directory-manager-modules.yaml
TBD: errata-announce -V --only univention-directory-manager-modules.yaml
Comment 4 Janek Walkenhorst univentionstaff 2016-11-03 11:32:35 CET
<http://errata.software-univention.de/ucs/4.1/319.html>