Malformed requests to profileparameters causes internal server error #6942
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:
Sending an invalid request body in a POST request to
/profileparameters
(in all API versions) yields a500 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:
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
).The text was updated successfully, but these errors were encountered: