Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 497118

Summary: RHN doesn't lete you unsubscribe from a channel you've lost access to
Product: [Retired] Red Hat Network Reporter: Grant Gainey <ggainey>
Component: RHN/BackendAssignee: Sebastian Skracic <sskracic>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Network Quality Assurance <rhn-qa-list>
Severity: medium Docs Contact:
Priority: low    
Version: RHN StableCC: acarter, rhn-bugs, vambati
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: US=3395
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-13 16:05:13 UTC Type: ---
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: 622855    

Description Grant Gainey 2009-04-22 13:01:19 UTC
If a customer has subscribed a system to a channel, which they then lose access to - attempting to *unsubscribe* that system via the web-ui leads to either a "you can't do that " message or an ISE-500 , depending on the path taken.

If you are *un*subscribing, we shouldn't care if you're still allowed to see the channel or not.

TEST PLAN
=========

1) Have a system in RHN with access to a given channel
2) Remove access to that channel from the associated org (either by expiring entitlement, or if necessary by hand-surgery on rhnprivatechannelfamilymap)
3) Go to the system "Alter channel subscriptions" page
4) Attempt to unsubscribe the system from the affected channel.

EXPECTED BEHAVIOR:
=================

System is allowed to unsubscribe

FAILURE:
=======

Receive error message/error page instead

Comment 1 Sebastian Skracic 2010-08-13 12:14:24 UTC
Fixed in 7f3a1314d60a6e7f17f73e0f4602f20c18f5fe13.

Comment 2 Sebastian Skracic 2010-08-13 13:25:21 UTC
Available on webdev.

Comment 3 venkat 2010-08-20 17:12:22 UTC
verified in dev.

we are allowed to unsubscribe to a channel now.

we are not getting "you can't do that" or ISE.

but when we click on the "Change Subscriptions" button, it doesn't say that you have unsubscribed to XYZ channel. it only says "Child channel subscriptions updated."

An informative message like you unsubscribed to XYZ channel may be helpfull.


delete from rhnPrivateChannelFamily where org_id = 6131501 and channel_family_id = (select channel_family_id from rhnchannelfamilymembers where channel_id = 6985);

Comment 4 venkat 2010-08-26 18:04:58 UTC
verified in QA. with the following org:

delete from rhnPrivateChannelFamily where org_id = 6131557 and
channel_family_id = (select channel_family_id from rhnchannelfamilymembers
where channel_id = 6985);