Project

General

Profile

Bug #15476

Insufficient validations for policy

Added by Ondřej Pražák almost 3 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
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.

Associated revisions

Revision 1ceea860 (diff)
Added by Ondřej Pražák over 2 years ago

Fixes #15476 - Improve validations for policy

Revision 2d244ada
Added by Shlomi Zadok over 2 years ago

Merge pull request #179 from xprazak2/policy-validations

Fixes #15476 - Improve validations for policy

History

#1 Updated by The Foreman Bot almost 3 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

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

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

#3 Updated by Marek Hulán over 2 years ago

  • Project changed from OpenSCAP (top-level) to OpenSCAP
  • Target version set to 1.6.0
  • Legacy Backlogs Release (now unused) set to 180
  • Triaged set to No

Also available in: Atom PDF