Bug #14989
closedISE on loading Sync Status page with Any Context
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1332247
Description of problem:
On accessing Sync Status (/sync_management) page with no Organization context (Any Context) an error is displayed.
2016-05-02 17:41:35 [app] [I] Processing by Katello::SyncManagementController#index as HTML
2016-05-02 17:41:35 [app] [E] User does not belong to an organization. (Katello::Errors::SecurityViolation)
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.24/app/controllers/katello/application_controller.rb:254:in `require_org'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:424:in `block in make_lambda'
...
| /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2016-05-02 17:41:35 [app] [I] Completed 500 Internal Server Error in 18ms
2016-05-02 17:41:35 [app] [F]
| ActionView::MissingTemplate (Missing template katello/common/403 with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :rabl]}. Searched in:
| * "/usr/share/foreman/app/views"
...
Version-Release number of selected component (if applicable):
6.2.0 Beta
How reproducible:
always
Steps to Reproduce:
1. make sure you're using Any Context
2. navigate to Content -> sync status
Actual results:
ISE
Expected results:
'Select Organization' dialog appears
Additional info: