Bug 784319

Summary: Organization is not being saved when creating new user
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: WebUIAssignee: Eric Helms <ehelms>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: paji
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:22:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 747354    

Description Og Maciel 2012-01-24 15:09:02 UTC
Description of problem:

When you create a new user and select a default Org, the user is successfully created, but the Org is not associated with the user. When you look at the User's environments, you get a No Default Organization. This seems to happen only on user creation (i.e. https://rhel61-server.usersys.redhat.com/katello/users#panel=new)

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

Katello Version: 0.1.194-1.el6 

How reproducible:


Steps to Reproduce:
1. As the Admin user, create a new user
2. Select an available Org
3. Save
4. Select this new user and then click its Environments section
  
Actual results:

No Default Organization

Expected results:

There should be the default organization selected when you created the user.

Additional info:


Started GET "/katello/organizations/1/environments_partial?new=true" for 10.11.230.241 at Tue Jan 24 10:08:38 -0500 2012
  Processing by OrganizationsController#environments_partial as 
  Parameters: {"new"=>"true", "id"=>"1"}
Rendered common/_env_select.html.haml (0.2ms)
Rendered organizations/_environments.html.haml (0.9ms)
Completed 200 OK in 23ms (Views: 1.9ms | ActiveRecord: 4.9ms)


Started POST "/katello/users" for 10.11.230.241 at Tue Jan 24 10:08:42 -0500 2012
  Processing by UsersController#create as 
  Parameters: {"org_id"=>{"org_id"=>"1"}, "authenticity_token"=>"u2I/GHxza4psgWRXnYtie7xvC/XaHQO2tYpGaCqVodw=", "utf8"=>"✓", "user"=>{"username"=>"mrivera", "password"=>"[FILTERED]", "email"=>"omaciel"}}
Rendered common/_list_item.html.haml (1.2ms)
Completed 200 OK in 533ms (Views: 2.5ms | ActiveRecord: 42.6ms)


Started GET "/katello/notices/get_new" for 10.11.230.241 at Tue Jan 24 10:08:43 -0500 2012
  Processing by NoticesController#get_new as JSON
Completed 200 OK in 17ms (Views: 2.1ms | ActiveRecord: 1.4ms)


Started GET "/katello/users/5/edit" for 10.11.230.241 at Tue Jan 24 10:08:43 -0500 2012
  Processing by UsersController#edit as HTML
  Parameters: {"id"=>"5"}
Rendered users/_edit_form.html.haml (158.7ms)
Rendered users/_edit.html.haml (172.2ms)
Completed 200 OK in 206ms (Views: 171.7ms | ActiveRecord: 10.6ms)

Comment 1 Eric Helms 2012-01-24 17:57:20 UTC
ebeaf20c699694cfccfef4da4c3e37fbce35974f

A newly created user should now have the default organization set.

Comment 2 Og Maciel 2012-01-26 15:44:41 UTC
Varified on Katello Version: 0.1.196-1.el6

Comment 5 Mike McCune 2013-08-16 18:00:39 UTC
getting rid of 6.0.0 version since that doesn't exist