Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-24769

Getting error "undefined method `class_name' for nil:NilClass" when entering search parameters in Compliance Reports.

XMLWordPrintable

    • Important
    • No

      Description of problem:

      Getting the following error in production.log when entering search parameters in Compliance Reports.

      ~~~
      2024-04-24T02:53:46 [I|app|3bd82135] Started GET "/compliance/arf_reports/auto_complete_search?search=host+" for 10.74.16.29 at 2024-04-24 02:53:46 +0530
      2024-04-24T02:53:46 [I|app|3bd82135] Processing by ArfReportsController#auto_complete_search as JSON
      2024-04-24T02:53:46 [I|app|3bd82135] Parameters:

      {"search"=>"host "}

      2024-04-24T02:53:46 [W|app|3bd82135] undefined method `class_name' for nil:NilClass
      3bd82135 | Did you mean? class_eval
      2024-04-24T02:53:46 [I|app|3bd82135] Backtrace for 'undefined method `class_name' for nil:NilClass
      3bd82135 | Did you mean? class_eval' error (NoMethodError): undefined method `class_name' for nil:NilClass
      3bd82135 | Did you mean? class_eval
      ~~~

      Version-Release number of selected component (if applicable):
      6.14.3

      Steps to Reproduce:

      1. Configure OpenSCAP with Ansible Roles on the Red Hat Satellite Server.
      2. Run a scan for all OpenSCAP policies against the host on which the policy is assigned
      3. Onc step 2 complete, then navigate to Hosts--> Compliance Report --> Search using any parameter

      Actual results:

      While searching in the compliance report, It always fails with the below error.

      ~~~
      Oops, we're sorry but something went wrong undefined method `class_name' for nil:NilClass Did you mean? class_eval
      ~~~

      Expected results:

      "The search parameter in the Compliance Report should function correctly."

      Additional info:

            aruzicka@redhat.com Adam Ruzicka
            rhn-support-sshewale Sonam Shewale
            Peter Ondrejka Peter Ondrejka
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: