Bug 1059846

Summary: 403 Permission Denied Error for Content pages if an Organization is not selected
Product: Red Hat Satellite Reporter: Jason Montleon <jmontleo>
Component: WebUIAssignee: Walden Raines <walden>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bkearney, jhutar, mkorbel, sghai, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/4945
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:07:29 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:

Description Jason Montleon 2014-01-30 19:32:36 UTC
Description of problem:
When logging into Satellite 6 initially you start out in the 'Any Organization' view. If you then try to access one of the Content pages you will get a 403 Permission Denied message. 

Version-Release number of selected component (if applicable):
Satellite 6.0.3 katello-1.5.0-16.el6sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install Satellite 6
2. Login
3. Access one of the pages under Content

Actual results:
See 403 Permission Denied message

Expected results:
Something that states I need to select an Org would be more informative. As is it initially left me with the impression something was broken

Additional info:

Comment 1 RHEL Program Management 2014-01-30 19:46:44 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Jan Hutaƙ 2014-03-12 20:34:46 UTC
Yes, hit this as well with Satellite-6.0.3-RHEL-6-20140305.1

Comment 4 Bryan Kearney 2014-03-30 21:07:25 UTC
http://projects.theforeman.org/issues/4945

Comment 5 Martin Korbel 2014-04-24 09:27:33 UTC
Is any progress in this task?  This bug is blocker for me. Can you fix it?

Comment 6 sthirugn@redhat.com 2014-05-01 13:32:31 UTC
This also happens for Hosts -> Content groups and Hosts -> System Groups

Comment 7 sthirugn@redhat.com 2014-05-01 13:34:11 UTC
This is a usability issue and needs to be fixed before beta.

Comment 8 Walden Raines 2014-05-21 15:52:25 UTC
PR: https://github.com/Katello/katello/pull/4130

Comment 9 Walden Raines 2014-05-22 13:09:09 UTC
commit 6c8f14296f41463ab5ef827d065cac21b1a3eef5
Merge: 9f12ebe 095e960
Author: Walden Raines <walden>
Date:   Thu May 22 08:47:55 2014 -0400

    Merge pull request #4130 from waldenraines/4945
    
    Fixes #4945/BZ1059846, show select an org message on 403 page.

commit 095e960350529b47c0be116f824e72b65db200c1
Author: Walden Raines <walden>
Date:   Wed May 21 11:50:01 2014 -0400

    Fixes #4945/BZ1059846, show select an org message on 403 page.

Comment 11 Sachin Ghai 2014-05-23 11:53:53 UTC
Reproducible with sat6 beta snap6.

I can still see 403 Permission Denied message while selecting content pages.

Comment 12 Walden Raines 2014-05-23 13:42:02 UTC
(In reply to Sachin Ghai from comment #11)
> Reproducible with sat6 beta snap6.
> 
> I can still see 403 Permission Denied message while selecting content pages.

Correct, but the page now says:

403 - Permission Denied
Please choose an organization using the selector located at the far left of the menu.

If that is not obvious enough then I could change the header to say something else.  I'm re-closing this as fixed, if we want to enhance the message please open another BZ and assign it to me.

Comment 13 Sachin Ghai 2014-05-26 05:27:42 UTC
Yeah.. I didn't notice the text below "403 - Permission Denied". Thanks

Moving this to verified.

Comment 14 Bryan Kearney 2014-07-02 14:07:29 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.