Project

General

Profile

Actions

Bug #15476

closed

Insufficient validations for policy

Added by Ondřej Pražák over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

It is possible to create an invalid policy with API call or hammer.

hammer policy create --name invalid --scap-content-id 19 --scap-content-profile-id 1 --period monthly --weekday abcdef
creates policy although weekday is clearly and invalid value. Since 'period' is 'monthly', 'weekday' should not be accepted at all and 'day_of_month' should be required instead.

Actions

Also available in: Atom PDF