Bug #9500
closedWrong domain assigned when they have intersection in the middle of name
Description
Having a hostname "something.example.org.com" and domain "example.org" would match in Nic::Interface#normalize_name resulting in assigning wrong domain.
Added by Marek Hulán about 10 years ago
Added by Daniel Lobato Garcia about 10 years ago
Refs #9500 - revert normalize_name tests
Current test "#normalize_hostname sets a domain based on name that contains its name if it's nil and such domain exists" is not testing anything because Domain.all does not return any domains to match (as .create was substituted on merge by .build).
Added by Marek Hulán about 10 years ago
Fixes #9500 - matching uses the whole domain name
(cherry picked from commit ede6d4ea8b266e3a90fc6c639929be2b55be225c)
Added by Daniel Lobato Garcia about 10 years ago
Refs #9500 - revert normalize_name tests
Current test "#normalize_hostname sets a domain based on name that contains its name if it's nil and such domain exists" is not testing anything because Domain.all does not return any domains to match (as .create was substituted on merge by .build).
(cherry picked from commit 6ee8b1c279468601dc2399448f70244f24f58d37)
Fixes #9500 - matching uses the whole domain name