Bug #23084

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

Added by Partha Aji 20 days ago. Updated 12 days ago.

Status:Closed
Priority:Normal
Assigned To:Partha Aji
Category:Activation Key
Target version:Team Brad - Iteration 27
Difficulty: Pull request:https://github.com/Katello/katello/pull/7274
Bugzilla link:1553338
Story points-
Velocity based estimate-
ReleaseKatello 3.7.0Release relationshipAuto

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
Added by Partha Aji 12 days 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.

History

#1 Updated by Partha Aji 20 days ago

  • Target version set to Team Brad - Iteration 27
  • Category set to Activation Key

#2 Updated by The Foreman Bot 20 days ago

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

#3 Updated by Partha Aji 20 days ago

  • Bugzilla link set to 1553338

#4 Updated by John Mitsch 17 days ago

  • Release set to Katello 3.7.0

#5 Updated by Partha Aji 12 days ago

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

Also available in: Atom PDF