Project

General

Profile

Actions

Bug #2351

closed

Inconsistent Down-casing causes host page to 404

Added by Nate Walck about 11 years ago. Updated about 11 years ago.

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

Description

When adding a client to Foreman that has a mixed case hostname (HostName.localdomain), the host details page for this client would display a 404 error. The debug logs showed this when trying to load the host details page:

https://gist.github.com/natewalck/5238787

even though the reports log worked as expected:

https://gist.github.com/natewalck/5238798

gwmngilfen on #theforeman walked me through all the above troubleshooting and narrowed the issue down to the following line of code:

https://github.com/theforeman/foreman/blob/develop/app/controllers/hosts_controller.rb#L508

I commented out that line of code, restarted the foreman and it began to work as expected.

Thanks to gwmngilfen for all the help on this!

Actions

Also available in: Atom PDF