Bug 1656204 - Hammer allows adding an erratum to a content view filter when the affected packages are not available in the content view
Summary: Hammer allows adding an erratum to a content view filter when the affected pa...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Views
Version: 6.3.4
Hardware: x86_64
OS: Linux
unspecified
low vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-04 22:31 UTC by Danny Synk
Modified: 2020-02-28 04:26 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3743791 None None None 2018-12-07 15:57:43 UTC

Description Danny Synk 2018-12-04 22:31:44 UTC
Description of problem:

Hammer allows adding an erratum to a content view filter even if the packages updated by the erratum are not available from any repositories in the content view.


How reproducible:

100% reproducible


Steps to Reproduce:
1. Create a content view with only the rhel-6-server-rpms and rhel-6-server-satellite-tools-6.3-rpms repositories
2. Create a yum content filter on the content view including all available errata updated in 2018
3. Add RHSA-2018:3665 (which only applies to RHEL 7 and was not available in the previous step) using hammer:

# hammer content-view filter rule create --content-view-filter-id 1 --errata-id RHSA-2018:3665


Actual results:

RHSA-2018:3665 is visible in the RHEL 6 content view filter errata list using both the Satellite webUI and `hammer content-view filter info`.


Expected results:

Hammer does not allow a user to add a given erratum to a content view filter unless packages affected by that erratum are available in the content view. Hammer presents an error when a user attempts to add such an erratum to a filter. 


Additional info:


Note You need to log in before you can comment on or make changes to this bug.