Project

General

Profile

Actions

Bug #15476

closed

Insufficient validations for policy

Added by Ondřej Pražák almost 8 years ago. Updated almost 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 #1

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Pražák
  • Pull request https://github.com/theforeman/foreman_openscap/pull/179 added
Actions #2

Updated by Ondřej Pražák over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Marek Hulán over 7 years ago

  • Project changed from 36 to OpenSCAP
  • Target version set to 1.6.0
  • translation missing: en.field_release set to 180
  • Triaged set to No
Actions

Also available in: Atom PDF