Project

General

Profile

Actions

Bug #14386

closed

No list provided for download policy error message

Added by Zach Huntington-Meath about 8 years ago. Updated almost 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1320311
Description of problem:
When providing an invalid download_policy value, the error message returned is:
"displayMessage": "Validation failed: Download policy is not included in the list"

Version-Release number of selected component (if applicable):
Satellite 6.2 Beta Snap 4

How reproducible:
Always

Steps to Reproduce:
1. Create or enable a repository
2. submit a put request to /katello/api/repositories/<repo id>
with an invalid value for download_policy

Actual results: {
"displayMessage": "Validation failed: Download policy is not included in the list",
"errors": {
"download_policy": [
"is not included in the list"
]
}
}

Expected results: {
"displayMessage": "Validation failed: Download policy is not included in the list: ['immediate', 'download_policy', 'background']",
"errors": {
"download_policy": [
"is not included in the list: ['immediate', 'download_policy', 'background']"
]
}
}

Actions #1

Updated by Zach Huntington-Meath about 8 years ago

  • Assignee set to Zach Huntington-Meath
Actions #2

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5924 added
Actions #3

Updated by Zach Huntington-Meath about 8 years ago

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

Updated by Eric Helms about 8 years ago

  • translation missing: en.field_release set to 86
Actions

Also available in: Atom PDF