https://bugzilla.redhat.com/show_bug.cgi?id=804572 (Red Hat Enterprise Linux 6)
Description of problem: This was reported by NC as part of IPA DNS Enh test day-2. Version-Release number of selected component (if applicable): ipa-server-2.2.0-4.el6.x86_64 How reproducible: Always Steps to Reproduce: 1. [root@primenova ~]# ipa dnsrecord-mod lab.eng.pnq.redhat.com test5 --a-ip-address=10.65.201.190 Actual results: ipa: ERROR: no modifications to be performed Expected results: We should raise an relevant error message when per-part modification mode is used without specifying the record. (--a-rec= in this case) Additional info:
attachment freeipa-mkosek-242-harden-raw-record-processing-in-dns-plugin.patch
Patch freeipa-mkosek-242-harden-raw-record-processing-in-dns-plugin.patch sent for review
Scenarios to test:
ipa dnsrecord-add example.com foo --mx-rec="0 bar.example.com." --mx-preference=1 --mx-exchanger=baz.example.com. (*) ipa dnsrecord-add example.com foo --mx-rec= --mx-preference=1 --mx-exchanger=baz.example.com. (*) ipa dnsrecord-add example.com foo --mx-rec="0 bar.example.com." ipa dnsrecord-mod example.com foo --mx-preference=1 (*) ipa dnsrecord-mod example.com foo --mx-rec= --mx-preference=1 (*) ipa dnsrecord-mod example.com foo --mx-rec="0 bar.example.com." --mx-preference=1
Commands marked with (*) should now fail with some meaningful error
master: 5b8e1e8[[BR]] ipa-2-2: 968ca77
Metadata Update from @mkosek: - Issue assigned to mkosek - Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/03
Login to comment on this ticket.