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=t...@test.com" also returned 
successful, therefore allowing an "invalid" domain.
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/WPO4DEKVNQ2PVO5U4IYD6EUPSQGLSXH7/

This message sent to arch...@mail-archive.com

Reply via email to