Bug 1220557

Summary: Content Views list for Lifecycle Environment throws error and won't load
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Content ManagementAssignee: Eric Helms <ehelms>
Status: CLOSED CURRENTRELEASE QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bkearney, cwelton, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10488
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:57:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike McCune 2015-05-11 20:08:55 UTC
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

Comment 3 Eric Helms 2015-05-12 20:37:10 UTC
Created redmine issue http://projects.theforeman.org/issues/10488 from this bug

Comment 4 Bryan Kearney 2015-05-15 17:55:24 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10488 has been closed
-------------
Eric Helms
Applied in changeset commit:katello|266f883c69fb9b43bc6c6520277d82eb2c74e3a9.

Comment 7 sthirugn@redhat.com 2015-05-21 19:12:25 UTC
Verified in Sat 6.1 GA Snap 5 (screenshot attached)

Comment 9 Bryan Kearney 2015-08-11 13:21:14 UTC
This bug is slated to be released with Satellite 6.1.

Comment 10 Bryan Kearney 2015-08-12 13:57:11 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.