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

Satellite throws error undefined method `html_safe' for nil:NilClass when trying to access some remote execution features

XMLWordPrintable

    • None
    • None
    • None
    • None
    • Yes

      Description of problem: Satellite throws undefined method `html_safe' for nil:NilClass error when trying to access some remote execution features

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

      Stream/6.14.0 snap- 15

      How reproducible: Always

      Steps to Reproduce:
      1. Navigate to Administer -> Remote execution features -> Try to access ansible_run_host , ansible_enable_web_console ,foreman_openscap_run_oval_scans

      Actual results: Page appears stating undefined method `html_safe' for nil: NilClass error

      Expected results: Correct page with the rex feature should have appeared

      Additional info: Some of the rex features (ex: ansible_run_insights_plan) are working absolutely fine need to check each and everyone while fixing

      Error logs:

      2023-05-26T08:54:34 [I|app|6b13e135] Started GET "/remote_execution_features/ansible_run_host" for 10.74.16.231 at 2023-05-26 08:54:34 -0400
      2023-05-26T08:54:34 [I|app|6b13e135] Processing by RemoteExecutionFeaturesController#show as HTML
      2023-05-26T08:54:34 [I|app|6b13e135] Parameters:

      {"id"=>"ansible_run_host"}

      2023-05-26T08:54:34 [I|app|6b13e135] Rendered /usr/share/gems/gems/foreman_remote_execution-9.1.0/app/views/remote_execution_features/show.html.erb within layouts/application (Duration: 9.4ms | Allocations: 14572)
      2023-05-26T08:54:34 [I|app|6b13e135] Rendered layout layouts/application.html.erb (Duration: 9.6ms | Allocations: 14625)
      2023-05-26T08:54:34 [W|app|6b13e135] undefined method `html_safe' for nil:NilClass
      6b13e135 | Did you mean? html_safe?
      2023-05-26T08:54:34 [I|app|6b13e135] Backtrace for 'undefined method `html_safe' for nil:NilClass
      6b13e135 | Did you mean? html_safe?' error (ActionView::Template::Error): undefined method `html_safe' for nil:NilClass
      6b13e135 | Did you mean? html_safe?

              aruzicka@redhat.com Adam Ruzicka
              aruzicka@redhat.com Adam Ruzicka
              Lukas Hellebrandt Lukas Hellebrandt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: