Project

General

Profile

Actions

Bug #39318

closed

Unable to save bookmark report under Hosts → All Hosts → Compliance → Reports

Added by Adam Ruzicka about 1 month ago. Updated 29 days ago.

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

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


Related issues 1 (0 open1 closed)

Related to Katello - Bug #39322: Katello hard overrides list of valid controllers for bookmarks, preventing plugins from extending itClosedAdam RuzickaActions
Actions #1

Updated by The Foreman Bot about 1 month ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_openscap/pull/610 added
Actions #2

Updated by Adam Ruzicka about 1 month ago

  • Related to Bug #39322: Katello hard overrides list of valid controllers for bookmarks, preventing plugins from extending it added
Actions #3

Updated by Adam Ruzicka 29 days ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF