Bug #23084

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

Added by Partha Aji 3 months ago. Updated about 1 month ago.

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


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- `block in copy'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello- `each'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello- `copy'

Associated revisions

Revision bc606efb
Added by Partha Aji 2 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
Added by Ranjan Kumar about 1 month ago

Fixes #23084 - activation-key copy fix


#1 Updated by Partha Aji 3 months ago

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

#2 Updated by The Foreman Bot 3 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 3 months ago

  • Bugzilla link set to 1553338

#4 Updated by John Mitsch 3 months ago

  • Release set to Katello 3.7.0

#5 Updated by Partha Aji 2 months ago

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

#6 Updated by The Foreman Bot about 1 month ago

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

Also available in: Atom PDF