pulp_rpm
pulp_rpm copied to clipboard
Minor error in error-message when validating incoming Content:Advisory CREATE
Version pulp_rpm/3.18.0.dev
Describe the bug If you don't pass a file into the CREATE API, the error message suggests file-or-artifact required. Advisory/UpdateRecord is non-Artifact content/
See app/serializers/advisory.py#L206
To Reproduce Steps to reproduce the behavior:
$ http --form POST :/pulp/api/v3/content/rpm/advisories/
HTTP/1.1 400 Bad Request
{
"non_field_errors": [
"Only creation with file or artifact is allowed."
]
}
Expected behavior
{
"non_field_errors": [
"File parameter required."
]
}
@pavelpicka Is this RBAC related?
@pavelpicka Is this RBAC related?
No, the RBAC-related one is #2534 - this is one is just the error-msg mentioning "or artifact", when UpdateRecord isn't artifact-backed.