Project

General

Profile

Bug #8878

Domains are being added with case sensitivity

Added by Joey D almost 7 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Bugzilla link:
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.

Associated revisions

Revision 25a647eb (diff)
Added by Joey D almost 7 years ago

fixes #8878 - ensure domain fact is downcased prior to import

Revision 90d9e7f0 (diff)
Added by Joey D almost 7 years ago

fixes #8878 - ensure domain fact is downcased prior to import

(cherry picked from commit 25a647eb04ac2d31af99c85e447d58d1de4185e6)

History

#1 Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2058 added
  • Pull request deleted ()

#2 Updated by Dominic Cleal almost 7 years ago

  • Category set to Host creation
  • Assignee set to Joey D
  • Legacy Backlogs Release (now unused) deleted (30)

#3 Updated by Dominic Cleal almost 7 years ago

  • Legacy Backlogs Release (now unused) set to 28

#4 Updated by Joey D almost 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF