Architectures filter blows up if an organization is selected
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"].
Application Trace | Framework Trace | Full Trace
app/models/concerns/authorizable.rb:19:in `block (2 levels) in <module:Authorizable>'
#3 Updated by Marek Hulán about 6 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.