Project

General

Profile

Actions

Bug #4268

closed

Spoof by hostname still searches by an empty IP and returns the wrong host

Added by Dominic Cleal about 10 years ago. Updated over 5 years ago.

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

Description

When accessing a spoof URL by hostname (e.g. /unattended/PXELinux?hostname=foo.example.com), the code tries to retrieve an IP and hostname from params, then searches by IP and hostname. If only the hostname was given, it does a find_by_ip(nil), which may return a host (not the right one).


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #359: Add support for 'hostname=<hostname>' spoofing for Unattended InstallsClosedDaniel Lobato Garcia07/27/2010Actions
Has duplicate Foreman - Bug #4382: Spoof by hostname does not work if there is a host without an IP addressDuplicateLukas Zapletal02/18/2014Actions
Actions #1

Updated by Dominic Cleal about 10 years ago

  • Related to Feature #359: Add support for 'hostname=<hostname>' spoofing for Unattended Installs added
Actions #2

Updated by Dominic Cleal about 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #3

Updated by Anonymous about 10 years ago

  • Target version changed from 1.9.2 to 1.9.1
Actions #4

Updated by Dominic Cleal about 10 years ago

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

Updated by Dominic Cleal about 10 years ago

  • Has duplicate Bug #4382: Spoof by hostname does not work if there is a host without an IP address added
Actions

Also available in: Atom PDF