Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect validation message from /acme_accounts #6368

Closed
ocket8888 opened this issue Nov 21, 2021 · 0 comments · Fixed by #6604
Closed

Incorrect validation message from /acme_accounts #6368

ocket8888 opened this issue Nov 21, 2021 · 0 comments · Fixed by #6604
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

Comments

@ocket8888
Copy link
Contributor

This Bug Report affects these Traffic Control components:

  • Traffic Ops

Current behavior:

If a PUT or POST request to /acme_accounts omits privateKey or makes it null 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 (not private_key).

Steps to reproduce:

topost -kpa 3.1 acme_accounts '{"email": "a", "uri": "a", "provider": "a"}'

@ocket8888 ocket8888 added bug something isn't working as intended low impact affects only a small portion of a CDN, and cannot itself break one low difficulty the estimated level of effort to resolve this issue is low Traffic Ops related to Traffic Ops labels Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant