Project

General

Profile

Bug #5884

Registration from subscription-manager is broken

Added by Michael Stead over 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

After attempting to register via subscription-manager, the following stack trace is shown.

[ERROR 2014-05-22 14:41:18 cp_proxy] NoMethodError: undefined method `organizations' for nil:NilClass
 | /home/mstead/development/sandbox/katello/app/controllers/katello/api/v1/candlepin_proxies_controller.rb:129:in `list_owners'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:167:in `process_action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_controller/metal/rendering.rb:10:in `process_action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:560:in `block (3 levels) in _run__3924748698359098668__process_action__3112490548312197792__callbacks'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_3936'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:in `around'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in `_callback_around_1752'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_3936'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:471:in `block (2 levels) in _run__3924748698359098668__process_action__3112490548312197792__callbacks'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_3935'
 | /home/mstead/development/sandbox/foreman/app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_3935'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:415:in `block in _run__3924748698359098668__process_action__3112490548312197792__callbacks'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_3934'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:in `around'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in `_callback_around_13'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_3934'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:414:in `_run__3924748698359098668__process_action__3112490548312197792__callbacks'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:17:in `process_action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_controller/metal/rescue.rb:29:in `process_action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in `block in instrument'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in `instrument'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.18/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
 | /home/mstead/development/sandbox/katello/app/controllers/katello/api/api_controller.rb:101:in `process_action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:121:in `process'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:45:in `process'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_controller/metal.rb:203:in `dispatch'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_controller/metal.rb:246:in `block in action'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:36:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/routing/mapper.rb:43:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:608:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.18/lib/rails/engine.rb:484:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in `method_missing'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:608:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/apipie-rails-0.1.3/lib/apipie/static_dispatcher.rb:65:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-openid-1.4.2/lib/rack/openid.rb:98:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/apipie-rails-0.1.3/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/head.rb:14:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
 | /home/mstead/development/sandbox/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/flash.rb:242:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:341:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.18/lib/active_record/query_cache.rb:64:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `_run__2166098521833199761__call__1173182659346841773__callbacks'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/reloader.rb:65:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
 | /home/mstead/development/sandbox/katello/lib/katello/middleware/silenced_logger.rb:30:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/request_id.rb:22:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.18/lib/rails/engine.rb:484:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.18/lib/rails/application.rb:231:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in `method_missing'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.18/lib/rails/rack/log_tailer.rb:17:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
 | /home/mstead/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
 | /home/mstead/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
 | /home/mstead/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
 | /home/mstead/.rvm/gems/ruby-1.9.3-p448/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
Completed 500 Internal Server Error in 13.4ms (Views: 0.3ms | ActiveRecord: 0.0ms)
With body: {"displayMessage":"undefined method `organizations' for nil:NilClass","errors":["undefined method `organizations' for nil:NilClass"]}

Associated revisions

Revision a3bb5a8c (diff)
Added by Eric Helms over 6 years ago

Fixes #5884: Fix typo for list_owners authenication to be properly handled.

Revision ade4cee3
Added by Eric Helms over 6 years ago

Merge pull request #4140 from ehelms/fixes-5884

Fixes #5884: Fix typo for list_owners authenication to be properly handl...

History

#1 Updated by Michael Stead over 6 years ago

Ugh... Sorry about the formatting of the stack trace. Next time I'll attach a file. :/

#2 Updated by Eric Helms over 6 years ago

  • Project changed from Foreman to Katello
  • Category deleted (47)
  • Triaged set to No

#3 Updated by Dominic Cleal over 6 years ago

  • Description updated (diff)

#4 Updated by Eric Helms over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset katello|commit:a3bb5a8c5a5a9bf17d35e4803a978cf8ee159247.

#5 Updated by Eric Helms over 6 years ago

  • Triaged changed from No to Yes

#6 Updated by Eric Helms about 6 years ago

  • Legacy Backlogs Release (now unused) set to 13

Also available in: Atom PDF