Bug 784319 - Organization is not being saved when creating new user
Summary: Organization is not being saved when creating new user
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2012-01-24 15:09 UTC by Og Maciel
Modified: 2019-09-26 13:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:22:32 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.