Bug 1112772 - 500 on GET of a subscription if not admin
Summary: 500 on GET of a subscription if not admin
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Walden Raines
QA Contact: sthirugn@redhat.com
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-24 16:18 UTC by Eric Helms
Modified: 2019-09-26 18:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-11 12:30:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eric Helms 2014-06-24 16:18:16 UTC
<pre>
NoMethodError: private method `select' called for nil:NilClass
/home/walden/katello/app/models/katello/authorization/distributor.rb:28:in `readable'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.18/lib/active_record/relation/delegation.rb:14:in `block in readable'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.18/lib/active_record/relation.rb:241:in `block in scoping'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.18/lib/active_record/scoping.rb:98:in `with_scope'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.18/lib/active_record/relation.rb:241:in `scoping'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.18/lib/active_record/relation/delegation.rb:14:in `readable'
(eval):51:in `block in render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/builder.rb:87:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/builder.rb:87:in `node'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/builder.rb:42:in `block in compile_hash'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/builder.rb:41:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/builder.rb:41:in `compile_hash'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/builder.rb:21:in `block in build'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/builder.rb:166:in `cache_results'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/builder.rb:20:in `build'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/engine.rb:51:in `to_hash'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/engine.rb:63:in `to_json'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/engine.rb:39:in `block in render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/engine.rb:285:in `cache_results'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rabl-0.9.0/lib/rabl/engine.rb:39:in `render'
/home/walden/katello/app/views/katello/api/v2/subscriptions/show.json.rabl:1:in `_c9b210e24bd8af859f13dc753a89da05'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/template.rb:145:in `block in render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/notifications.rb:125:in `instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/template.rb:143:in `render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/deface-0.9.1/lib/deface/action_view_extensions.rb:37:in `render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in `block in instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in `instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/renderer/template_renderer.rb:45:in `render_template'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/renderer/template_renderer.rb:18:in `render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/renderer/renderer.rb:36:in `render_template'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_view/renderer/renderer.rb:17:in `render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:110:in `_render_template'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/streaming.rb:225:in `_render_template'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:103:in `render_to_body'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:88:in `render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/rendering.rb:16:in `render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/walden/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.18/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:39:in `render'
/home/walden/katello/app/lib/katello/api/v2/rendering.rb:44:in `respond_with_template'
/home/walden/katello/app/lib/katello/api/v2/rendering.rb:50:in `respond_with_template_resource'
/home/walden/katello/app/lib/katello/api/v2/rendering.rb:7:in `respond_for_show'
/home/walden/katello/app/controllers/katello/api/api_controller.rb:145:in `respond'
/home/walden/katello/app/controllers/katello/api/v2/subscriptions_controller.rb:55:in `show'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:167:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:593:in `block (3 levels) in _run__1393372454630960241__process_action__490058035902128287__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_11005'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:in `around'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in `_callback_around_9685'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_11005'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:471:in `block (2 levels) in _run__1393372454630960241__process_action__490058035902128287__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_11004'
/home/walden/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.18/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_11004'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:415:in `block in _run__1393372454630960241__process_action__490058035902128287__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_11003'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:in `around'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in `_callback_around_13'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_11003'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:414:in `_run__1393372454630960241__process_action__490058035902128287__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/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.18/lib/active_support/notifications.rb:123:in `block in instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in `instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.18/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/walden/katello/app/controllers/katello/api/api_controller.rb:110:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:121:in `process'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:45:in `process'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal.rb:203:in `dispatch'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_controller/metal.rb:246:in `block in action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:36:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/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.18/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.18/lib/rails/engine.rb:484:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.18/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.18/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/apipie-rails-0.1.3/lib/apipie/static_dispatcher.rb:65:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-openid-1.4.2/lib/rack/openid.rb:98:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/apipie-rails-0.1.3/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/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:25:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/walden/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/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.18/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.18/lib/active_record/query_cache.rb:64:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.18/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.18/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `_run__1130895720613715287__call__1774881904818165908__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/middleware/reloader.rb:65:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/home/walden/katello/lib/katello/middleware/silenced_logger.rb:30:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.18/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.18/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.18/lib/action_dispatch/middleware/static.rb:63:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.18/lib/rails/engine.rb:484:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.18/lib/rails/application.rb:231:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.18/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.18/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'
Completed 500 Internal Server Error in 946.4ms (Views: 0.2ms | ActiveRecord: 9.0ms)
With body: {"displayMessage":"private method `select' called for nil:NilClass","errors":["private method `select' called for nil:NilClass"]}
</pre>

Steps to Reproduce:
 1. Create a user with the view subscriptions permission
 2. Create at least one subscription
 3. Attempt to view the subscription
 4. Note error

Comment 1 Eric Helms 2014-06-24 16:18:18 UTC
Created from redmine issue http://projects.theforeman.org/issues/6242

Comment 2 Eric Helms 2014-06-24 16:18:23 UTC
Upstream bug assigned to walden

Comment 5 sthirugn@redhat.com 2014-08-11 21:05:31 UTC
Verified.

- Created a new user who is assigned to Org A and having only one role with 'view_subscriptions' permission
- As a new user user I am able to login to Org A and view subscriptions with no error.

Version Tested:
GA Snap 4 - Satellite-6.0.4-RHEL-6-20140806.0

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.19-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.19-1.el6_5.noarch
* candlepin-tomcat6-0.9.19-1.el6_5.noarch
* elasticsearch-0.90.10-4.el6sat.noarch
* foreman-1.6.0.38-1.el6sat.noarch
* foreman-compute-1.6.0.38-1.el6sat.noarch
* foreman-gce-1.6.0.38-1.el6sat.noarch
* foreman-libvirt-1.6.0.38-1.el6sat.noarch
* foreman-ovirt-1.6.0.38-1.el6sat.noarch
* foreman-postgresql-1.6.0.38-1.el6sat.noarch
* foreman-proxy-1.6.0.23-1.el6sat.noarch
* foreman-selinux-1.6.0.4-1.el6sat.noarch
* foreman-vmware-1.6.0.38-1.el6sat.noarch
* katello-1.5.0-28.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-installer-0.0.57-1.el6sat.noarch
* openldap-2.4.23-34.el6_5.1.x86_64
* pulp-katello-0.3-3.el6sat.noarch
* pulp-nodes-common-2.4.0-0.30.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.30.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.30.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.30.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.30.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.30.beta.el6sat.noarch
* pulp-server-2.4.0-0.30.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
* sssd-ldap-1.11.5.1-3.el6.x86_64

Comment 6 Bryan Kearney 2014-09-11 12:30:09 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.


Note You need to log in before you can comment on or make changes to this bug.