Project

General

Profile

Actions

Bug #8878

closed

Domains are being added with case sensitivity

Added by Joey D almost 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

If a resolver has a client's domain cached in CAPS, foreman will interpret that as a new domain when the client checks in and provides it's latest facts (resulting in potential extra domains of: caps.net, CAPS.net, caps.NET, and CAPS.net). This in turn will effect any matchers that are dependent upon 'domain =~'. This issue was patched in a previous version of foreman (see Bug #708), although it seems to have re-surfaced.

It looks as if the import_host_facts function in models/host/managed.rb is in fact changing the hostname to all lowercase, but this isn't the case for the domain.

Actions

Also available in: Atom PDF