#2551 Irrelevant error message when per-part modification mode is used during dnsrecord-mod operation without specifying the record.
Closed: Fixed None Opened 11 years ago by mkosek.

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:

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

Metadata Update from @mkosek:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/03

6 years ago

Login to comment on this ticket.

Metadata