Project

General

Profile

Actions

Bug #25039

closed

No Audit entries found if you selected the Organization filter.

Added by Chun-Liang Lin over 5 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

We have used the Organization in Foreman and we just upgraded the Foreman to 1.18.2.

If I selected the Organization filter to "Any Organization", I can view all of the hosts and view the Host audit entries by click the Audits button.

If I selected the Organization filter to any specific Organization, I can view all of the hosts but can't view the Host audit entries by click the Audits button.
https://foreman/hosts/server_name/audits shows "No entries found"


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #24232: Non admin user is unable to see the audits for katello and taxable resources created by admin using Any Location contextClosedSebastian GräßlActions
Actions #1

Updated by Chun-Liang Lin over 5 years ago

  • Related to Bug #24232: Non admin user is unable to see the audits for katello and taxable resources created by admin using Any Location context added
Actions #2

Updated by Chun-Liang Lin over 5 years ago

The issue is the same with https://projects.theforeman.org/issues/24232. I can fix this bug with the solution.

Actions #3

Updated by Marek Hulán over 5 years ago

This will only work properly in 1.20, audits now inherit taxonomies from resources that are also taxable (e.g. by organization) and audits page reflects that. The change is too big to backport to 1.18/1.19. The workaround should be to look at the page under admin user in any context, that should always give you all audits.

Can we close this as dup of #24232?

Actions #4

Updated by Chun-Liang Lin over 5 years ago

My workaround is to remove the with_taxonomy_scope in app/controllers/audits_controller.rb now.
Yes. we can close it. Thanks.

Actions #5

Updated by Marek Hulán over 5 years ago

  • Status changed from New to Duplicate

yeah that would help, thanks, closing

Actions

Also available in: Atom PDF