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

Malformed requests to profileparameters causes internal server error #6942

Closed
ocket8888 opened this issue Jul 7, 2022 · 1 comment
Closed
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:

Sending an invalid request body in a POST request to /profileparameters (in all API versions) yields a 500 Internal Server Error response.

Expected behavior:

Invalid requests should yield 400 Bad Request responses with at least one error-level alert describing why the input was invalid.

Steps to reproduce:

  1. topost -k profileparameters (no request body is necessary to reproduce, but also syntactically invalid bodies e.g. [, { will cause it, and so will any valid JSON that isn't an object or array e.g. "string", null).
@ocket8888 ocket8888 added bug something isn't working as intended Traffic Ops related to Traffic Ops 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 labels Jul 7, 2022
@ocket8888
Copy link
Contributor Author

Duplicate of #4428

@ocket8888 ocket8888 marked this as a duplicate of #4428 Jul 7, 2022
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

No branches or pull requests

1 participant