Project

General

Profile

Bug #23084

activation-key copy fails with "undefined method" and Internal Server Error

Added by Partha Aji 7 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Activation Key
Target version:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

1) Create an activation key with some content overrides
2) Select actions -> Copy
notice an ISE

NoMethodError: undefined method `[]' for #<Katello::ContentOverride:0x007f8f66e35498>
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.58/app/controllers/katello/api/v2/activation_keys_controller.rb:98:in `block in copy'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.58/app/controllers/katello/api/v2/activation_keys_controller.rb:97:in `each'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.58/app/controllers/katello/api/v2/activation_keys_controller.rb:97:in `copy'

Associated revisions

Revision bc606efb (diff)
Added by Partha Aji 6 months ago

Fixes #23084 - Correctly copies AK

There was a change in the content override model code that didnt make it
to the activation key copy code. This bug fixes that.

Revision 556b48d8 (diff)
Added by Ranjan Kumar 6 months ago

Fixes #23084 - activation-key copy fix

History

#1 Updated by Partha Aji 7 months ago

  • Target version set to 245
  • Category set to Activation Key

#2 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7274 added

#3 Updated by Partha Aji 7 months ago

  • Bugzilla link set to 1553338

#4 Updated by John Mitsch 7 months ago

  • Legacy Backlogs Release (now unused) set to 338

#5 Updated by Partha Aji 6 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#6 Updated by The Foreman Bot 6 months ago

  • Pull request https://github.com/Katello/katello/pull/7345 added

Also available in: Atom PDF