Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1332247

Summary: ISE on loading Sync Status page with Any Context
Product: Red Hat Satellite Reporter: Roman Plevka <rplevka>
Component: WebUIAssignee: Zach Huntington-Meath <zhunting>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, tbrisker, xdmoon
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/14989
Whiteboard:
Fixed In Version: rubygem-katello-3.0.0.31-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 10:59:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
foreman/production.log none

Description Roman Plevka 2016-05-02 15:44:03 UTC
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:

Comment 1 Roman Plevka 2016-05-02 15:45:17 UTC
Created attachment 1152997 [details]
foreman/production.log

Comment 4 Zach Huntington-Meath 2016-05-10 18:18:19 UTC
Created redmine issue http://projects.theforeman.org/issues/14989 from this bug

Comment 5 Bryan Kearney 2016-05-10 20:21:38 UTC
Upstream bug component is WebUI

Comment 6 Bryan Kearney 2016-05-11 14:16:35 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14989 has been closed

Comment 7 Tomer Brisker 2016-05-22 14:28:41 UTC
Verified in 6.2 Snap 12. Select organization dialog appears.

Comment 8 Bryan Kearney 2016-07-27 10:59:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501