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...
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.3.4
Hardware: x86_64
OS: Linux
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Lai
Depends On:
TreeView+ depends on / blocked
Reported: 2018-12-04 22:31 UTC by Danny Synk
Modified: 2020-05-13 01:25 UTC (History)
0 users

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

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3743791 0 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.