Project

General

Custom queries

Profile

Actions

Bug #9500

closed

Wrong domain assigned when they have intersection in the middle of name

Added by Marek Hulán about 10 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Network
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Revision ede6d4ea (diff)

Fixes #9500 - matching uses the whole domain name

Added by Daniel Lobato Garcia about 10 years ago

Revision 6ee8b1c2 (diff)

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

Revision f9ba7275 (diff)

Fixes #9500 - matching uses the whole domain name

(cherry picked from commit ede6d4ea8b266e3a90fc6c639929be2b55be225c)

Added by Daniel Lobato Garcia about 10 years ago

Revision adb9247c (diff)

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)

Actions

Also available in: Atom PDF