Project

General

Profile

Actions

Bug #37763

closed

Registration without environments or environment_id param causes NoMethodError

Added by Jeremy Lenz 3 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

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: ...


Related issues 1 (0 open1 closed)

Copied to Katello - Bug #37829: Registration without environments or environment_id param causes NoMethodErrorClosedJeremy LenzActions
Actions #1

Updated by Jeremy Lenz 3 months ago

  • Description updated (diff)
Actions #2

Updated by Samir Jha 3 months ago

  • Triaged changed from No to Yes
Actions #3

Updated by Samir Jha 3 months ago

  • Red Hat JIRA set to SAT-27416
Actions #4

Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Assignee set to Jeremy Lenz
  • Pull request https://github.com/Katello/katello/pull/11123 added
Actions #5

Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 4.15.0 added
Actions #6

Updated by Jeremy Lenz 3 months ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Chris Roberts about 2 months ago

  • Copied to Bug #37829: Registration without environments or environment_id param causes NoMethodError added
Actions #8

Updated by The Foreman Bot about 2 months ago

  • Fixed in Releases Katello 4.14.1 added
Actions

Also available in: Atom PDF