Univention Bugzilla – Bug 55459
Adding computer / ip-client in UMC leaves IP in DNS empty if changing the suggested IP manually
Last modified: 2023-07-14 09:12:15 CEST
If I create a computer or IP-Client using the UMC computer module and change the automatically suggested IP, this IP will be shown or can be selected as the IP for DNS entries. After saving the new Computer / IP-Client the IP-entries for the DNS are empty. You can change the DNS entries to the correct IP and save it and now the DNS IPs are saved correct. The problem is the first step of creation, because all entries are looking quit correct and there is no error message after or during the saving of the new computer / IP-Client. The problem occurs with UCS 5.0. When using UCS 4.4 the creation of a computer / IP-Client works correct.
Customer affected Ticket#2023040121000239 UCS 5.0-3
Flagged as regression because it worked with UCS 4.4.
Reproducer: curl 'https://Administrator:univention@demo.univention.de/univention/command/udm/add' \ -H 'Accept-Language: en-US' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json; q=1.0, text/html; q=0.3; */*; q=0.1' \ --data-raw '{"options":[{"object":{"name":"foobar","network":"cn=default,cn=networks,dc=demo,dc=univention,dc=de","ip":["10.0.0.111"],"dnsEntryZoneForward":[["zoneName=demo.univention.de,cn=dns,dc=demo,dc=univention,dc=de","10.0.0.111"]],"dnsEntryZoneReverse":[["zoneName=0.0.10.in-addr.arpa,cn=dns,dc=demo,dc=univention,dc=de","10.0.0.111"]],"unixhome":"/dev/null","shell":"/bin/bash","primaryGroup":"cn=Computers,cn=groups,dc=demo,dc=univention,dc=de","$options$":{"kerberos":true,"nagios":false,"posix":true,"pki":false,"samba":true},"$policies$":{}},"options":{"container":"cn=computers,dc=demo,dc=univention,dc=de","objectType":"computers/linux","objectTemplate":"None"}}],"flavor":"computers/computer"}' Does not happen, when leaving out the "network".
*** Bug 14789 has been marked as a duplicate of this bug. ***
*** Bug 31963 has been marked as a duplicate of this bug. ***
A fix is available in the MR: https://git.knut.univention.de/univention/ucs/-/merge_requests/767
Aligned the logic for UDM-REST-API, UDM-CLI and UDM-UMC. univention-management-console-module-udm.yaml 308546b06c6b | fix(udm): fix IP address assignment when network is selected univention-management-console-module-udm (10.0.8-2) 308546b06c6b | fix(udm): fix IP address assignment when network is selected univention-directory-manager-rest.yaml 308546b06c6b | fix(udm): fix IP address assignment when network is selected univention-directory-manager-rest (10.0.6-5) 308546b06c6b | fix(udm): fix IP address assignment when network is selected univention-directory-manager-modules.yaml 308546b06c6b | fix(udm): fix IP address assignment when network is selected univention-directory-manager-modules (15.0.24-2) 308546b06c6b | fix(udm): fix IP address assignment when network is selected
*** Bug 55135 has been marked as a duplicate of this bug. ***
QA: * Test: OK * Advisory: OK * #c3: OK
<https://errata.software-univention.de/#/?erratum=5.0x738> <https://errata.software-univention.de/#/?erratum=5.0x739> <https://errata.software-univention.de/#/?erratum=5.0x740>