Project

General

Profile

Actions

Bug #9467

closed

500 when attempting to apply errata via content host bulk actions

Added by Walden Raines almost 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Category:
Errata Management
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

NameError: uninitialized constant Katello::SystemsBulkAction
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `constantize'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
/home/walden/code/katello/app/controllers/katello/api/v2/api_controller.rb:51:in `rescue in resource_class'
/home/walden/code/katello/app/controllers/katello/api/v2/api_controller.rb:49:in `resource_class'
/home/walden/code/katello/app/controllers/katello/api/v2/api_controller.rb:88:in `scoped_search'
/home/walden/code/katello/app/controllers/katello/api/v2/systems_bulk_actions_controller.rb:106:in `applicable_errata'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/abstract_controller/base.rb:167:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:562:in `block (5 levels) in _run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7211'
/home/walden/code/foreman/app/controllers/api/v2/base_controller.rb:151:in `disable_json_root'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7211'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:517:in `block (4 levels) in _run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7210'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:326:in `around'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:310:in `_callback_around_3840'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7210'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:505:in `block (3 levels) in _run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7209'
/home/walden/code/foreman/app/controllers/concerns/application_shared.rb:13:in `set_timezone'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7209'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:504:in `block (2 levels) in _run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7208'
/home/walden/code/foreman/app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7208'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:448:in `block in _run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7207'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:326:in `around'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:310:in `_callback_around_13'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7207'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:414:in `_run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/notifications.rb:123:in `instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.21/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/walden/code/katello/app/controllers/katello/concerns/api/api_controller.rb:59:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/abstract_controller/base.rb:121:in `process'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/abstract_controller/rendering.rb:45:in `process'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal.rb:203:in `dispatch'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal.rb:246:in `block in action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:73:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:36:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/mapper.rb:43:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/engine.rb:484:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/static.rb:83:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/static.rb:83:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/bullet-4.14.4/lib/bullet/rack.rb:12:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/conditionalget.rb:35:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/walden/code/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/flash.rb:242:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.21/lib/active_record/query_cache.rb:64:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `_run__1357351658658142972__call__1657118514850179268__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/reloader.rb:65:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/home/walden/code/katello/lib/katello/middleware/silenced_logger.rb:29:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/static.rb:83:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/engine.rb:484:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/application.rb:231:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/rack/log_tailer.rb:17:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
/home/walden/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/home/walden/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/home/walden/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
caused by: (NameError) uninitialized constant SystemsBulkAction
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `constantize'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
    ... skipped 111 lines
Completed 500 Internal Server Error in 19.4ms (Views: 0.2ms | ActiveRecord: 1.1ms)
With body: {"displayMessage":"uninitialized constant Katello::SystemsBulkAction","errors":["uninitialized constant Katello::SystemsBulkAction"]}

Steps to Reproduce

  1. Ensure you have at least one content host with errata
  2. Go to content hosts page
  3. Select it and go to bulk actions
  4. Click on errata tab
  5. Note 500
Actions #1

Updated by Walden Raines almost 10 years ago

  • Bugzilla link set to 1194343
Actions #2

Updated by Eric Helms almost 10 years ago

  • Target version changed from 66 to 67
Actions #3

Updated by Eric Helms almost 10 years ago

  • Translation missing: en.field_release set to 31
Actions #4

Updated by Eric Helms almost 10 years ago

  • Translation missing: en.field_release changed from 31 to 23
Actions #5

Updated by The Foreman Bot almost 10 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5041 added
  • Pull request deleted ()
Actions #6

Updated by Justin Sherrill almost 10 years ago

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

Also available in: Atom PDF