Bug #39318
closedUnable to save bookmark report under Hosts → All Hosts → Compliance → Reports
Description
Description of problem:
When attempting to create a bookmark from the Compliance Reports page, the operation fails with the error:
“Controller arf_reports is not a valid controller”.
This occurs via the GUI when saving a bookmark for a compliance search query.
How reproducible:
Always reproducible
Is this issue a regression from an earlier version:
yes
Steps to Reproduce:
1) Navigate to Hosts → All Hosts → Compliance → Reports
2) Enter a valid search query (e.g., compliance_status = compliant)
3) Click on Bookmark this search
4) Enter a name for the bookmark
5) Click Save
Actual behavior:
Bookmark creation fails with error:
“Controller arf_reports is not a valid controller”
API returns 422 Unprocessable Entity
No bookmark is created
Error observed in /var/log/foreman/production.log
> /var/log/foreman/production.log <
2026-04-21T21:03:15 [I|app|3a6f6838] Started POST "/api/bookmarks" for 10.67.32.10 at 2026-04-21 21:03:15 +0530
2026-04-21T21:03:15 [I|app|3a6f6838] Processing by Api::V2::BookmarksController#create as JSON
2026-04-21T21:03:15 [I|app|3a6f6838] Parameters: {"public"=>true, "query"=>"compliance_status = compliant ", "name"=>"test", "apiv"=>"v2", "bookmark"=>{"name"=>"test", "query"=>"compliance_status = compliant ", "controller"=>"api/v2/bookmarks", "public"=>true}}
2026-04-21T21:03:15 [E|app|3a6f6838] Unprocessable entity Bookmark (id: new):
3a6f6838 | Controller arf_reports is not a valid controller
3a6f6838 |
2026-04-21T21:03:15 [I|app|3a6f6838] Rendered api/v2/errors/unprocessable_entity.json.rabl within api/v2/layouts/error_layout (Duration: 0.6ms | Allocations: 382)
2026-04-21T21:03:15 [I|app|3a6f6838] Rendered layout api/v2/layouts/error_layout.json.erb (Duration: 0.8ms | Allocations: 476)
2026-04-21T21:03:15 [I|app|3a6f6838] Completed 422 Unprocessable Entity in 17ms (Views: 1.3ms | ActiveRecord: 1.9ms | Allocations: 4768)
Expected behavior:
Bookmark should be created successfully for the compliance report search
No validation or controller-related error should occur
Saved bookmark should be visible and reusable from the UI