Project

General

Profile

Actions

Bug #6435

closed

Search on filter page for filtering resources raises NetworkError 404 not found

Added by Stephen Benjamin almost 10 years ago. Updated almost 6 years ago.

Status:
Duplicate
Priority:
Normal
Category:
Web UI
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1111531
Description of problem:
I was trying add permissions to selected role. So I choose "View_content_views" from resource type "Content View" and try to search the resources and UI throws 404 in firebug. Please see the screenshot.

Production.log has following entries:

ActionController::RoutingError (No route matches [GET] "/katello/content_views/auto_complete_search"):
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'

ActionController::RoutingError (No route matches [GET] "/katello/content_views/auto_complete_search"):
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'

Version-Release number of selected component (if applicable):
sat6 beta snap10

How reproducible:
always

Steps to Reproduce:
1. create a role
2. add permissions, choose 'content view' as resource type
3. add "View_content_views" permission
4. uncheck "Unlimited" check box
5. in search box, just click

Actual results:
Network error 404 not found

Expected results:
Resource should be available and no 404 should be raised

Additional info:


Related issues 2 (0 open2 closed)

Related to Katello - Tracker #4638: Scoped Search ConversionResolved03/12/2014

Actions
Is duplicate of Katello - Bug #6488: roles: auto search should be enabled for all katello related resource types.ClosedStephen Benjamin07/03/2014Actions
Actions #1

Updated by Eric Helms almost 10 years ago

  • Category set to Web UI
  • Status changed from New to Assigned
  • Assignee set to Stephen Benjamin
  • Target version set to 48
  • Difficulty set to trivial
  • Triaged set to Yes
Actions #2

Updated by Stephen Benjamin almost 10 years ago

  • Status changed from Assigned to Rejected

Foreman's Filters make queries to model_path/auto_complete_search. This URL is generated here:

https://github.com/theforeman/foreman/blob/develop/app/helpers/filters_helper.rb

For activation_keys and some other Katello models, there is no route in config/routes.rb (that all happens in bastion's routes.js) -- so no search URL is generated.

Content views do have a route defined in config/routes.rb, so filters_helper generates the /katello/content_views/auto_complete_search path -- which doesn't actually exist, thus the error in Firebug.

Foreman could validate the actual auto_complete_search path is valid, but Rails.application.routes.recognize_path doesn't seem to work with engines.

This will be fixed on the Katello side once #4638 is resolved and the models all have auto_complete_search anyway.

Actions #3

Updated by Stephen Benjamin almost 10 years ago

Actions #4

Updated by Stephen Benjamin almost 10 years ago

  • Status changed from Rejected to Assigned

Actually I'll just take this up as implementing auto completion...

Actions #5

Updated by Stephen Benjamin almost 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #6

Updated by Stephen Benjamin almost 10 years ago

  • Related to Bug #6488: roles: auto search should be enabled for all katello related resource types. added
Actions #7

Updated by Stephen Benjamin almost 10 years ago

  • Related to deleted (Bug #6488: roles: auto search should be enabled for all katello related resource types.)
Actions #8

Updated by Stephen Benjamin almost 10 years ago

  • Is duplicate of Bug #6488: roles: auto search should be enabled for all katello related resource types. added
Actions #9

Updated by Stephen Benjamin almost 10 years ago

  • Status changed from Ready For Testing to Duplicate
Actions #10

Updated by Eric Helms almost 10 years ago

  • Translation missing: en.field_release set to 13
Actions #11

Updated by Eric Helms over 9 years ago

  • Translation missing: en.field_release deleted (13)
Actions #12

Updated by Eric Helms almost 8 years ago

  • Translation missing: en.field_release set to 166
Actions

Also available in: Atom PDF