Project

General

Profile

Actions

Bug #20198

closed

publishing/promoting a CV with puppet content fails as non admin user

Added by Justin Sherrill almost 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Content Views
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

When publishing/promoting a CV with puppet content fails as non admin user, you'll get an error:

ActiveRecord::RecordInvalid

Validation failed: Puppet environment can't be blank

---
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/validations.rb:79:in
  `raise_record_invalid'" 
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/validations.rb:43:in
  `save!'" 
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/attribute_methods/dirty.rb:29:in
  `save!'" 
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/transactions.rb:291:in
  `block in save!'" 
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/transactions.rb:351:in
  `block in with_transaction_returning_status'" 
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
  `block in transaction'" 
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/transaction.rb:184:in
  `within_new_transaction'" 
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
  `transaction'" 
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/transactions.rb:220:in
  `transaction'" 
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/transactions.rb:348:in
  `with_transaction_returning_status'" 
- "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.8/lib/active_record/transactions.rb:291:in
  `save!'" 
- "/home/vagrant/git/katello/app/lib/katello/lazy_accessor.rb:87:in `save!'" 
- "/home/vagrant/git/katello/app/models/katello/content_view_puppet_environment.rb:100:in
  `index_content'" 
- "/home/vagrant/git/katello/app/lib/actions/pulp/content_view_puppet_environment/index_content.rb:13:in
  `block in run'" 
- "/home/vagrant/git/foreman/app/models/concerns/foreman/thread_session.rb:75:in `as'" 
- "/home/vagrant/git/foreman/app/models/concerns/foreman/thread_session.rb:81:in `as_anonymous_admin'" 
- "/home/vagrant/git/katello/app/lib/actions/pulp/content_view_puppet_environment/index_content.rb:10:in
  `run'" 
- "/home/
Actions #1

Updated by Justin Sherrill almost 7 years ago

  • Bugzilla link set to 1464414
Actions #2

Updated by The Foreman Bot almost 7 years ago

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

Updated by Justin Sherrill almost 7 years ago

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

Updated by Eric Helms over 6 years ago

  • translation missing: en.field_release changed from 267 to 281
Actions

Also available in: Atom PDF