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

Registration without environments or environment_id param causes NoMethodError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Hosts - Content
    • Sprint 138
    • None

      If you register without passing environments or environment_id params, it chooses the default environment but we forgot to put that in an array.

      https://github.com/Katello/katello/blob/e7b32979a6946d2af2618dba789a0669946fa018/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb#L335

      So it causes

      NoMethodError: undefined method `each' for #<Katello::ContentViewEnvironment id: 2, name: "Library", label: "Library", cp_id: ...

              rhn-engineering-jlenz Jeremy Lenz
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: