Bug 752815

Summary: double render on new system
Product: [Retired] Katello Reporter: Tom McKay <tomckay>
Component: WebUIAssignee: Tom McKay <tomckay>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0Keywords: Triaged
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-01 19:07:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tom McKay 2011-11-10 13:58:18 UTC
Description of problem:

Started GET "/katello/systems/new" for 10.11.230.24 at Thu Nov 10 08:53:25 -0500 2011
  Processing by SystemsController#new as HTML
Setting locale: en
Setting current user thread-local variable to admin
Authorizing admin for systems/new
Rendered common/_env_select.html.haml (10.5ms)
Rendered systems/_new.html.haml (185.6ms)
Setting current user thread-local variable to nil
Completed 200 OK in 1121ms (Views: 195.0ms | ActiveRecord: 91.5ms)


Started POST "/katello/systems" for 10.11.230.24 at Thu Nov 10 08:53:53 -0500 2011
  Processing by SystemsController#create as 
  Parameters: {"arch"=>{"arch_id"=>"x86_64"}, "system"=>{"name"=>"new-system", "sockets"=>"2", "environment_id"=>"2"}, "authenticity_token"=>"00q1czvBdeBd3n5LTBAouBIFA45NDfk/Xo14smyD9+E=", "utf8"=>"✓", "system_type"=>{"virtualized"=>"physical"}}
Setting locale: en
Setting current user thread-local variable to admin
Authorizing admin for systems/create
Creating a consumer in candlepin: new-system
Resource POST request: /candlepin/consumers/?owner=ACME_Corporation, {"name":"new-system","facts":{"cpu.cpu_socket(s)":"2","uname.machine":"x86_64","network.hostname":"new-system","virt.is_guest":false},"type":"system"}
Processing response: 200
Creating a consumer in pulp: new-system
Resource POST request: /pulp/api/consumers/?owner=ACME_Corporation, {"key_value_pairs":{},"id":"b03a11b2-e6d8-4ff2-8d1d-000f3345fe7a","description":null}
Processing response: 201
Resource GET request: /candlepin/consumers/b03a11b2-e6d8-4ff2-8d1d-000f3345fe7a
Processing response: 200
Rendered systems/_list_system.html.haml (142.3ms)
Rendered systems/_list_systems.html.haml (145.7ms)
Setting current user thread-local variable to nil
Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".
Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".
#<AbstractController::DoubleRenderError: Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".>
/
...
/home/tomckay/code/katello/src/app/controllers/systems_controller.rb:105:in `create'

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Use the 'New System'
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tom McKay 2011-12-01 19:07:21 UTC
Duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=754955

*** This bug has been marked as a duplicate of bug 754955 ***