Actions
Bug #14364
closedno validation for default_download_policy setting value
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1321045
Description of problem:
No validation at all applies to default_download_policy setting, so user can input whatever value.
- hammer -u admin -p changeme settings set --name default_download_policy --value they-told-me-i-could-be-anything-i-wanted-so-i-became-a-download-policy-value
Setting [default_download_policy] updated to [they-told-me-i-could-be-anything-i-wanted-so-i-became-a-download-policy-value] - hammer -u admin -p changeme settings list | grep policy
default_download_policy | they-told-me-i-could-be-anything-i-wanted-so-i-became-a-download-policy-value | Default download policy for repositories (either 'immediate', 'on_demand', or...
```
- applies to UI and API as well.
Version-Release number of selected component (if applicable):
Satellite 6.2.0 Snap 5.1
How reproducible:
Actual results:
any value (including Null) accepted
Expected results:
should accept only: 'immediate', 'on_demand', or 'background'
Additional info:
Actions