Project

General

Profile

Actions

Bug #5397

closed

Architectures filter blows up if an organization is selected

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

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

Description

1. Create new role
2. New Filter
3. Select 'architectures' resource type
4. Add all permissions
5. Click 'submit'
6. Assign role to a user without any roles
7. Log in as that user
8. See 'Architectures' link and attempt to select
9. Get the following errors:

If on another Foreman page:

"Invalid search query: Field 'organization_id' not recognized for searching!"

Try to go to /architectures directly:

ActionController::RedirectBackError in ArchitecturesController#index

No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure to specify request.env["HTTP_REFERER"].
Rails.root: /home/ehelms/workspace/foreman

Application Trace | Framework Trace | Full Trace
app/controllers/concerns/foreman/controller/auto_complete_search.rb:22:in `invalid_search_query'
lib/middleware/catch_json_parse_errors.rb:9:in `call'
app/services/authorizer.rb:50:in `find_collection'
app/models/concerns/authorizable.rb:19:in `block (2 levels) in <module:Authorizable>'
app/controllers/application_controller.rb:163:in `resource_base'
app/controllers/architectures_controller.rb:6:in `index'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'


Related issues 3 (1 open2 closed)

Has duplicate Foreman - Bug #5775: org admin user cannot visit Configure -> Puppet Classes UI pageDuplicate05/17/2014Actions
Has duplicate Foreman - Bug #5541: Filter of resource type Organization can result in error condition when trying to access organization resourcesClosedMarek Hulán05/01/2014Actions
Blocks Foreman - Tracker #4552: New permissions/authorization system issuesNew

Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Blocks Tracker #4552: New permissions/authorization system issues added
Actions #2

Updated by Dominic Cleal over 10 years ago

  • Category set to Users, Roles and Permissions

So this search string is something you added, with organization_id?

Actions #3

Updated by Marek Hulán over 10 years ago

I can imagine this can happen if you have filter for taxonomied resource, select some of them (automatically when you're in some context) and later you change the resource of this filter, taxonomies could remain assigned even if this resource does not support them.

Actions #4

Updated by Dominic Cleal over 10 years ago

  • Related to Bug #5541: Filter of resource type Organization can result in error condition when trying to access organization resources added
Actions #5

Updated by Dominic Cleal over 10 years ago

  • Has duplicate Bug #5775: org admin user cannot visit Configure -> Puppet Classes UI page added
Actions #6

Updated by Dominic Cleal over 10 years ago

  • Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1098709
Actions #7

Updated by Marek Hulán over 10 years ago

  • Related to deleted (Bug #5541: Filter of resource type Organization can result in error condition when trying to access organization resources)
Actions #8

Updated by Marek Hulán over 10 years ago

  • Has duplicate Bug #5541: Filter of resource type Organization can result in error condition when trying to access organization resources added
Actions #9

Updated by Dominic Cleal over 10 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF