Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1096223

Summary: Undefined method session when default organization set
Product: Red Hat Satellite Reporter: Eric Helms <ehelms>
Component: WebUIAssignee: Eric Helms <ehelms>
Status: CLOSED CURRENTRELEASE QA Contact: Tazim Kolhar <tkolhar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bbuckingham, cwelton, dcleal, jcall, omaciel, spandey, tkolhar
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/5645
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:07:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eric Helms 2014-05-09 13:36:54 UTC
<pre>
NameError: undefined local variable or method `session' for Foreman::Controller::UsersMixin:Module
 | /home/ehelms/workspace/foreman/app/controllers/concerns/foreman/controller/users_mixin.rb:60:in `block in set_current_taxonomies'
 | /home/ehelms/workspace/foreman/app/controllers/concerns/foreman/controller/users_mixin.rb:55:in `each'
 | /home/ehelms/workspace/foreman/app/controllers/concerns/foreman/controller/users_mixin.rb:55:in `set_current_taxonomies'
 | /home/ehelms/workspace/foreman/app/controllers/concerns/foreman/controller/authentication.rb:77:in `set_current_user'
 | /home/ehelms/workspace/foreman/app/controllers/concerns/foreman/controller/authentication.rb:18:in `authenticate'
</pre>

Comment 1 Eric Helms 2014-05-09 13:36:56 UTC
Created from redmine issue http://projects.theforeman.org/issues/5645

Comment 2 Eric Helms 2014-05-09 13:37:01 UTC
Upstream bug assigned to ehelms

Comment 6 Dominic Cleal 2014-05-20 15:01:30 UTC
*** Bug 1095291 has been marked as a duplicate of this bug. ***

Comment 9 Tazim Kolhar 2014-05-26 07:32:26 UTC
Please provide verification steps

Comment 10 Eric Helms 2014-05-27 12:58:34 UTC
Steps to verify:

1. Create a new user
2. Give that new user an organization and set a default organization afterwards
3. Hit the API as that user

Comment 11 Tazim Kolhar 2014-05-27 14:31:28 UTC
VERIFIED

Comment 12 Bryan Kearney 2014-07-02 14:07:06 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.