internetee / registry

TLD Management Software
Other
45 stars 19 forks source link

Internal error on IDN domain:create #1154

Open vohmar opened 5 years ago

vohmar commented 5 years ago

Internal error is returne when trying to register already existing domainname that includes IDN caharcters. The problem does not exist when using Punycode version (xn--...) or regular non IDN domainnames.

EPP response:

<result code="2400">
      <msg lang="en">Internal error.</msg>

the expected response is:

    <result code="2302">
      <msg lang="en">Domain name already exists [name_dirty]</msg>
vohmar commented 5 years ago

the problem exists when the format used on registration is different from the version used in new domain create request ie UTF was used for registration (täheke.ee) and on the second try punycode is used (xn--theke-bua.ee) or vice versa. Reason being that 3 versions of each domain name is saved version entered by user, utf and ascii (punycode) - first one is probably the cause here - epp does not detect that domain name is already registered and db returns unique constraint error.