Red Hat Bugzilla – Bug 497118
RHN doesn't lete you unsubscribe from a channel you've lost access to
Last modified: 2010-09-13 12:05:13 EDT
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.
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.
System is allowed to unsubscribe
Receive error message/error page instead
Fixed in 7f3a1314d60a6e7f17f73e0f4602f20c18f5fe13.
Available on webdev.
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);
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);