Incorrect validation message from /acme_accounts #6368
Labels
bug
something isn't working as intended
low difficulty
the estimated level of effort to resolve this issue is low
low impact
affects only a small portion of a CDN, and cannot itself break one
Traffic Ops
related to Traffic Ops
This Bug Report affects these Traffic Control components:
Current behavior:
If a PUT or POST request to /acme_accounts omits
privateKey
or makes itnull
or a blank string, the API will report in an error-level alert:"validating: 'private_key' cannot be blank"
Expected behavior:
The API should respond with the actual name of the missing, required field, which in this case is
privateKey
(notprivate_key
).Steps to reproduce:
topost -kpa 3.1 acme_accounts '{"email": "a", "uri": "a", "provider": "a"}'
The text was updated successfully, but these errors were encountered: