-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
False
-
sat-artemis
-
None
-
None
-
None
-
None
Description of problem:
Errata-id option on hammer command to add rule does not validate the IDs.
Version-Release number of selected component (if applicable):
6.17.3
How reproducible:
Always
Steps to Reproduce:
1. Create a Content View and create a filter with type Errata
2. Run the following command to create a new rule
hammer content-view filter rule create --errata-id "RHSA-2025:14640,RHSA-2025:14497,RHSA-2025:14420,RHSA-2025:14493,RHSA-2025:14416,RHSA-2025:14130,RHSA-2025:14181,RHSA-2025:14075" --content-view-filter-id 6 hammer content-view filter rule create --errata-id "12354" --content-view-filter-id 6
The first command option should be errata-ids.
3. Run the following
Actual results:
The command creates the rules without validating if the errata-id is valid.
# hammer content-view filter rule list --content-view-filter-id 8 --------|-----------|--------------------------------------------------------------------------------- RULE ID | FILTER ID | ERRATA ID --------|-----------|--------------------------------------------------------------------------------- 32 | 8 | RHSA-2025:14640,RHSA-2025:14497,RHSA-2025:14420,RHSA-2025:14493,RHSA-2025:144... 34 | 8 | 12354 50 | 8 | Satellite
Expected results:
If the ID is not valid, the command should not create the rule.