operasoftware / dns-ui

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

Create ipv6 reverse zone should ignore /xx notation #135

Closed jsoref closed 5 years ago

jsoref commented 5 years ago
  1. visit /dnsui/zones#reverse6
  2. Paste an ipv6 notation, e.g. 1/128
  3. Click Create zone from prefix
  4. fill in any missing fields (esp. classification)
  5. click create zone

actual results: dnsui doesn't actually like this

expected results: drop the /128 or whatever and create a happy zone

jsoref commented 5 years ago

Fwiw, Chrome has this to say, which seems relevant:

Pattern attribute value ([0-9a-fA-F]{1,4})(:[0-9a-fA-F]{1,4}){0,6}\:? is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /([0-9a-fA-F]{1,4})(:[0-9a-fA-F]{1,4}){0,6}\:?/: Invalid escape