operasoftware / dns-ui

Opera's LDAP-authenticated PowerDNS user interface
Apache License 2.0
283 stars 58 forks source link

The zone creation failed. The following error message was given: Nameservers must be non-empty strings #99

Open jsoref opened 6 years ago

jsoref commented 6 years ago

Steps:

  1. Load Reverse zones IPv6
  2. Enter a prefix
  3. Click Create zone from prefix
  4. Fill in classification testing
  5. Enter a primary name server ns1.example.com. (note: the validation should tell you to include the trailing .)
  6. Enter contact example@example.com. (note: the validation should tell you to include the trailing .)
  7. Refresh 7200
  8. Retry 3600
  9. Expire 604800
  10. Default TTL 600
  11. SOA TTL 3600
  12. Nameservers ns1.example.com. ns2.example.com. (note: the trailing space here is important)
  13. Create zone

Actual results:

The zone creation failed. The following error message was given: Nameservers must be non-empty strings

Expected results: (a) It should just work or (b) There should be input validation warning about stray whitespace

jsoref commented 5 years ago

https://stackoverflow.com/questions/13643417/how-to-validate-pattern-matching-in-textarea