Actions
Bug #20198
closedpublishing/promoting a CV with puppet content fails as non admin user
Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Pull request:
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/
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6848 added
Updated by Justin Sherrill over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|0de18ca1b038bf056eafe5d2c319986dee1f7749.
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 267 to 281
Actions