Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-20238 We get "undefined method" error when trying to show non-existent settings via id
  3. SAT-36803

[QE] We get "undefined method" error when trying to show non-existent settings via id

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Settings
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • sat-rocket
    • Rocket
    • Satellite Rocket Sprint 3

      Description of problem:
      When trying to show non-existent setting via hammer or API using it's id, we get
      "undefined method" error.

      Version-Release number of selected component (if applicable):
      6.13.5, 6.14.0, 6.15.0 stream

      How reproducible:
      always

      Steps to Reproduce:
      1. On SAT try: hammer settings info --id wrong_id
      2. On SAT try: curl -su admin:changeme https://$(hostname)/api/settings/wrong_id

      Actual results:
      1. undefined method `name' for nil:NilClass
      2.
      {
      "error":

      {"message":"undefined method `name' for nil:NilClass"}

      }

      Expected results:
      Error: setting not found.

      QE Tracker for https://issues.redhat.com/browse/SAT-20238

              rh-ee-napathak Nakul Pathak
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: