Bug 1202698

Summary: Bulk Action->'Remove Products' button should be disabled or proper Error Message should be displayed for Red Hat products.
Product: Red Hat Satellite Reporter: Jitendra Yejare <jyejare>
Component: RepositoriesAssignee: John Mitsch <jomitsch>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, cwelton
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-28 19:35:47 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
Screenshot of Error message for Bulk delete actions for both Redhat and custom product. none

Description Jitendra Yejare 2015-03-17 09:00:09 UTC
Created attachment 1002720 [details]
Screenshot of Error message for Bulk delete actions for both Redhat and custom product.

Description of problem:
The 'Remove Products' button should be disabled -or- A Proper message should be displayed and action should be taken while deleting mix of Custom and RedHat products in bulk.

Version-Release number of selected component (if applicable):
Redhat Satellite 6.1 Snap 6 Compose 2

How reproducible:
Always

Steps to Reproduce:
1. Add/Upload a subscription manifest from Content - > Red Hat Subscriptions.                                                         
2. From Rehat Repositories-> Red Hat Enterprise Linux Server -> Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs), Select Red Hat Enterprise Virtualization Agents for RHEL 6 Server RPMs x86_64 6.6. Sync this repo from Sync Status.
3. Go to Products, add new custom product with a repo. And Sync that repo from Sync Status.
4. Go to Products, Select both custom and Rehat products.
5. Click on Bulk Actions button.
6. Click on Remove Products button.

Actual results:
1. An error message displayed as 'An error occurred removing the Products: Cannot delete a Red Hat Products or Products with Repositories published in a Content View'.
2. Custom product is not deleted.

Expected results:
'Remove Products' button should be disabled if any Redhat product is selected to delete only custom products.
--OR--
Custom Product should be deleted with proper message indicating custom product deleted and Redhat product cannot be deleted.

Additional info:
NA

Comment 2 Brad Buckingham 2016-04-28 19:35:47 UTC
This BZ is actually a duplicate of 1129448; therefore, goiong to close this one.

*** This bug has been marked as a duplicate of bug 1129448 ***