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:
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5917 added
Updated by David Davis over 8 years ago
- Related to Feature #14366: Show a select in the UI for the different download policy options on the Settings page added
Updated by David Davis over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|17a42c0e4de23013ccdb4db79a4f5c32938e6239.
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release set to 86
Actions