Project

General

Profile

Actions

Bug #10488

closed

Content Views list for Lifecycle Environment throws error and won't load

Added by Eric Helms about 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1220557
1) Publish and Promote Content Views into a Lifecycle Environment that is not Library.
2) Go to Content -> Lifecycle Enviromnents
3) Select environment (eg, DEV)
4) Click Content Views, note error:

2015-05-11 16:06:12 [I] Processing by Katello::Api::V2::EnvironmentsController#index as JSON
2015-05-11 16:06:12 [I] Parameters: {"organization_id"=>"5", "api_version"=>"v2"}
2015-05-11 16:06:12 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.39/app/views/katello/api/v2/environments/index.json.rabl within katello/api/v2/layouts/collection (269.8ms)
2015-05-11 16:06:12 [I] Completed 200 OK in 280ms (Views: 207.6ms | ActiveRecord: 64.8ms)
2015-05-11 16:06:12 [I] Processing by Katello::Api::V2::ContentViewsController#index as JSON
2015-05-11 16:06:12 [I] Parameters: {"environment_id"=>"", "full_result"=>"true", "organization_id"=>"5", "api_version"=>"v2"}
2015-05-11 16:06:12 [E] ActiveRecord::RecordNotFound: Couldn't find Katello::KTEnvironment with id=
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:341:in `find_one'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:312:in `find_with_ids'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:107:in `find'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/querying.rb:5:in `find'

Full error:

https://gist.github.com/mccun934/75cfaff830c26244c9b0

Actions

Also available in: Atom PDF