Project

General

Profile

Bug #10488

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

Added by Eric Helms over 6 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
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

Associated revisions

Revision 266f883c (diff)
Added by Eric Helms over 6 years ago

Fixes #10488: Ensure ID exists when environment details are loaded.

Revision c2b843f3
Added by Eric Helms over 6 years ago

Merge pull request #5224 from ehelms/fixes-10488

Fixes #10488: Ensure ID exists when environment details are loaded.

History

#1 Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5224 added
  • Pull request deleted ()

#2 Updated by Eric Helms over 6 years ago

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

#3 Updated by Eric Helms over 6 years ago

  • Legacy Backlogs Release (now unused) set to 31
  • Triaged changed from No to Yes

Also available in: Atom PDF