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

errata filter failing with ScopedSearch::QueryNotSupported: Field 'type' not recognized for searching

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 6.15.z
    • Errata Management
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • To Do
    • None

      Description of problem:

      When selecting multiple content hosts and using the 'Manage Errata' action, applying filters such as 'type = security' results in no errata available for installation.

      Observing the below error in the production.log file when entering the filter type

      ~~~

      2024-07-18T01:26:26 [I|app|b4300960] Started POST "/api/v2/hosts/bulk/installable_errata" for 10.74.16.42 at 2024-07-18 01:26:26 +0530
      2024-07-18T01:26:26 [I|app|b4300960] Processing by Katello::Api::V2::HostsBulkActionsController#installable_errata as HTML2024-07-18T01:26:26 [I|app|b4300960]   Parameters: {"included"=>{"ids"=>[2], "resources"=>[

      ], "search"=>nil, "params"=>{"organization_id"=>"1", "search"=>"", "sort_by"=>"name", "sort_order"=>"ASC", "paged"=>true, "page"=>1, "per_page"=>"20"}}, "excluded"=>{"ids"=>[]}, "all"=>false, "paged"=>true, "page"=>1, "per_page"=>"20", "search"=>"type=security", "organization_id"=>"1"}}
      2024-07-18T01:26:26 [E|app|b4300960] ScopedSearch::QueryNotSupported: Field 'type' not recognized for searching!
       b4300960 | /usr/share/gems/gems/scoped_search-4.1.12/lib/scoped_search/query_builder.rb:509:in `to_single_field_sql'
      ~~~

      How reproducible:

      100 %

      Is this issue a regression from an earlier version:

      Satellite 6.15

      Steps to Reproduce:

      1. Navigate to Hosts --> Content Hosts and select one or multiple content hosts

      2. After that click on Select Action --> Manage errata and try to search for parameter type 

      3. While entering filters such as 'type = security' results in no errata available for installation.

       

      Actual behavior:

      In production.log observed the below error when trying to search errata for parameter type

      ~~~
      ScopedSearch::QueryNotSupported: Field 'type' not recognized for searching!

      ~~~

       

      Expected behavior:

      The search parameter type=security in the manage errata should function correctly and list the errata 

      Business Impact / Additional info:

       

              Unassigned Unassigned
              rhn-support-sshewale Sonam Shewale
              Sonam Shewale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: