Bug 976371

Summary: in organization with no channel entitlement I see base channel offered for system
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: WebUIAssignee: Jan Dobes <jdobes>
Status: CLOSED CURRENTRELEASE QA Contact: Jiří Mikulka <jmikulka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 560CC: cperry, jdobes, jmikulka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.0.2-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 21:56:17 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:
Bug Depends On:    
Bug Blocks: 924232    

Description Jan Hutař 2013-06-20 12:59:27 UTC
Description of problem:
In organization with no channel entitlement (just few management ones) I see base channel offered for system.


Version-Release number of selected component (if applicable):
Satellite-5.6.0-RHEL6-re20130617.0-x86_64


How reproducible:
1 of 1 attempt


Steps to Reproduce:
1. Create organization:
   - with trust to main organization
   - with 10 management base entitlements, but with no channel entitlement
2. Migrate one system there
3. Login to new organization
4. Systems -> <migrated_system> -> Software -> Software Channels
5. Take a look at "Base Software Channel" and offered chnnels
6. I can see RHEL6 base channel offered there
7. Click on it and "Confirm"


Actual results:
We're sorry, but the channel could not be found. 
  This error may have occurred in one of three ways:
    The channel requested does not exist. This is most likely if you
    arrived at this page through bookmarks or some other non-hyperlink.
    You do not have permission to view this channel.
    You've found an error in our site.


Expected results:
IMO If I do not have permission to use that channel, it should not be offered.

Comment 1 Jan Dobes 2013-06-25 07:39:06 UTC
Channels without channel entitlements aren't even listed under all channels list, so I modified listing of base channels to not offer it too.

spacewalk master: 23583fe5c7b5b59285f2f6f4f98f2b9159b5ab93

Comment 4 Clifford Perry 2013-10-01 21:56:17 UTC
Satellite 5.6 has been released. This bug was tracked under the release.  

This bug was either VERIFIED or RELEASE_PENDING (re-verified prior shortly
before release). 

Moving to CLOSED CURRENT_RELEASE. 

Text from Upgrade Erratum follows:

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.

http://rhn.redhat.com/errata/RHEA-2013-1395.html