Bug #25525
closedHost details/associated host button on discovered host audit gives 404
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1651916
Description of problem:
Host details button on Audit log created for discovered host redirected to
https://satellite/hosts/<discovered_host> leading to "Host not found Please try to update your request" 404 page not found.
It should redirect to
https://satellite/discovered_hosts/<discovered_host>.
Version-Release number of selected component (if applicable):
Satellite 6.5 snap 4
How reproducible: always
Steps to Reproduce:
1. Discover a host with pxe
2. Navigate to Monitor - > audit
3. Click on audit log created for discovered host (see attachment)
4. Click on host details/associated host button.
Actual results:
page not found and production.log showed
2018-11-21T02:48:39 [I|app|] Started GET "/hosts/nikhil525400ff8483" for 10.65.223.78 at 2018-11-21 02:48:39 -0500
2018-11-21T02:48:39 [I|app|fad27] Processing by HostsController#show as HTML
2018-11-21T02:48:39 [I|app|fad27] Parameters: {"id"=>"nikhil525400ff8483"}
2018-11-21T02:48:39 [I|app|fad27] Current user set to admin (admin)
2018-11-21T02:48:39 [I|app|fad27] Rendering common/404.html.erb within layouts/application
2018-11-21T02:48:39 [I|app|fad27] Rendered common/404.html.erb within layouts/application (7.1ms)
2018-11-21T02:48:39 [I|app|fad27] Rendered layouts/_application_content.html.erb (0.6ms)
2018-11-21T02:48:39 [I|app|fad27] Rendering layouts/base.html.erb
2018-11-21T02:48:39 [I|app|fad27] Rendered layouts/base.html.erb (6.0ms)
2018-11-21T02:48:39 [I|app|fad27] Completed 404 Not Found in 48ms (Views: 25.5ms | ActiveRecord: 2.8ms)
Expected results: page should redirect correctly.
Additional info:
Updated by The Foreman Bot almost 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6288 added
Updated by Kavita Gaikwad almost 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset c69f8b647841a30de1fbbf6620a00c4274c6eb30.