Project

General

Profile

Bug #25525

Host details/associated host button on discovered host audit gives 404

Added by Kavita Gaikwad 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Audit Log
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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:

Associated revisions

Revision c69f8b64 (diff)
Added by Kavita Gaikwad 5 months ago

Fixes #25525 - fix host_details path for other types on audit

History

#1 Updated by The Foreman Bot 6 months ago

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

#2 Updated by Tomer Brisker 5 months ago

  • Fixed in Releases 1.21.0 added

#3 Updated by Kavita Gaikwad 5 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF