
Feb. 15, 2025
7:30 a.m.
Mark,
I can reproduce the bug via CURL:
curl -u restadmin:restpass
http://localhost:8001/3.1/domains
--request POST
-d mail_host=
Basically providing the "mail_host" param, but leaving it empty causes the command to return successful, therefore creating an "empty" domain entry.
Ideally the REST API should check to see if the param is empty, or for that matter "valid" before accepting it.
Another test just run with "-d mail_host=test@test.com" also returned successful, therefore allowing an "invalid" domain.