Project

General

Profile

Actions

Bug #2503

closed

Intermittent failure to load pages as non-admin user

Added by Greg Sutcliffe almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Seen on: Git Head: ce12585ee584563f99cdc8fbc3ce1f1ae663495f
Rails Env: development

I'm testing permissions access as a non-admin user (with a variety of filters). Usually on the second or third page load, I get a stack trace:

private method `select' called for nil:NilClass
Rails.root: /home/greg/github/foreman

Application Trace | Framework Trace | Full Trace
lib/foreman/access_control.rb:46:in `public_permissions'
app/models/role.rb:144:in `allowed_permissions'
app/models/role.rb:148:in `allowed_actions'
app/models/role.rb:98:in `allowed_to?'
app/models/user.rb:174:in `allowed_to?'
app/models/user.rb:174:in `allowed_to?'
app/controllers/application_controller.rb:43:in `authorize'
lib/foreman/thread_session.rb:31:in `clear_thread'

I'm guessing something in the settings loader is dropping information....

Actions #1

Updated by Anonymous almost 11 years ago

  • Assignee set to Anonymous
Actions #2

Updated by Anonymous almost 11 years ago

  • Status changed from New to Need more information
  • Assignee changed from Anonymous to Greg Sutcliffe

wb: couldn't reproduce with latest discovery plugin and "develop" branch.

Actions #3

Updated by Dominic Cleal almost 11 years ago

  • Target version deleted (1.2.0)
Actions #4

Updated by Greg Sutcliffe over 10 years ago

  • Description updated (diff)
  • Status changed from Need more information to Closed

Haven't seen this in a long time, will close for now.

Actions

Also available in: Atom PDF