Actions
Bug #25378
closeddeleting a repo after deleting a cvv results in "Couldn't find Katello::Content without an ID"
Description
1. create a yum repo
2. publish it in a content view
3. Delete the published CVV
4. Try to delete the yum repo
Couldn't find Katello::Content without an ID (ActiveRecord::RecordNotFound) /home/vagrant/.rvm/gems/ruby-2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/finder_methods.rb:429:in `find_with_ids' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/finder_methods.rb:69:in `find' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/activerecord-5.2.1/lib/active_record/querying.rb:5:in `find' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/activerecord-5.2.1/lib/active_record/core.rb:167:in `find' /home/vagrant/git/katello/app/lib/actions/katello/product/content_destroy.rb:22:in `block in plan' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/execution_plan.rb:384:in `switch_flow' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/action.rb:401:in `sequence' /home/vagrant/git/katello/app/lib/actions/katello/product/content_destroy.rb:7:in `plan' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/action.rb:493:in `block (3 levels) in execute_plan' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware/stack.rb:26:in `pass' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware.rb:18:in `pass' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware.rb:35:in `plan' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware/stack.rb:22:in `call' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware/stack.rb:26:in `pass' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware.rb:18:in `pass' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware.rb:35:in `plan' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware/stack.rb:22:in `call' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware/stack.rb:26:in `pass' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware.rb:18:in `pass' /home/vagrant/git/katello/app/lib/actions/middleware/keep_locale.rb:7:in `plan' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware/stack.rb:22:in `call' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware/stack.rb:26:in `pass' /home/vagrant/.rvm/gems/ruby-2.5.0/gems/dynflow-1.1.1/lib/dynflow/middleware.rb:18:in `pass'
Updated by Justin Sherrill about 6 years ago
- Priority changed from Normal to High
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7809 added
Updated by Justin Sherrill about 6 years ago
- Related to Refactor #24328: As a developer, repository settings should live on a new repository class added
Updated by Justin Sherrill about 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|a07b48dfec88e0fd9d4eda5316bb17f7945cd89c.
Actions