Bug #5645

Undefined method session when default organization set

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

Status:Closed
Priority:Normal
Assigned To:Eric Helms
Category:Authentication
Target version:Sprint 24
Difficulty: Bugzilla link:1096223
Found in release:1.5.0 Pull request:
Story points-
Velocity based estimate-
Release1.5.1Release relationshipAuto

Description

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'

Associated revisions

Revision e44762c8
Added by Eric Helms over 3 years ago

Fixes #5645: Fixes session undefined error when user has a default taxonomy set.

Revision b8571d9b
Added by Eric Helms over 3 years ago

Fixes #5645: Fixes session undefined error when user has a default taxonomy set.

(cherry picked from commit e44762c830161a70235428cf175537fa9544377e)

History

#1 Updated by Dominic Cleal over 3 years ago

  • Description updated (diff)
  • Category set to Authentication
  • Release set to 1.5.1

#2 Updated by Eric Helms over 3 years ago

  • Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1096223

#3 Updated by Dominic Cleal over 3 years ago

  • Status changed from New to Ready For Testing
  • Target version set to Sprint 23
  • Found in release set to 1.5.0

#4 Updated by Eric Helms over 3 years ago

Steps to reproduce:

1. Create a new user and attach them to an organization
2. Save the user
3. Edit the user and set a default organization
4. Create a new role and give the user some simple permission
5. Log in as that user

#5 Updated by Lukas Zapletal over 3 years ago

Update: You need to hit the API to reproduce this one.

#6 Updated by Dmitri Dolguikh over 3 years ago

  • Target version changed from Sprint 23 to Sprint 24

#7 Updated by Eric Helms over 3 years ago

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

Also available in: Atom PDF