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

Search box in the Partition Tables page throws an Rails error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 6.10.0
    • Search
    • Low
    • None

      Description of problem:
      Search on the Partition Tables throws an error in some cases.

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

      How reproducible:
      always

      Steps to Reproduce:
      1. Navigate to Hosts -> Partition Tables
      2. Enter "Atomic Kickstart default" into the search bar and submit it.

      Actual results:
      The following error is shown to the user:
      Oops, we're sorry but something went wrong wrong number of bind variables (8 for 9) in: (("templates"."name" ILIKE ? OR "templates"."template" ILIKE ? OR "templates"."template" ILIKE ? OR "templates"."os_family" ILIKE ?) AND ("templates"."name" ILIKE ? OR "templates"."template" ILIKE ? OR "templates"."template" ILIKE ? OR "templates"."os_family" ILIKE ?) AND (["(\"templates\".\"default\" <> ?)", false]))

      Expected results:
      No error should be thrown and no results should be shown as "Atomic Kickstart default" is a name of the Provisioning Template (assuming default Satellite instance)

      Additional info:
      Tested on both 6.10 and 6.9. This is not a regression.
      Attached logs come from 6.9.

            aruzicka@redhat.com Adam Ruzicka
            jira-bugzilla-migration RH Bugzilla Integration
            Lukas Hellebrandt Lukas Hellebrandt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: