Internal Server Error when create Server without profileId #4979
Labels
regression bug
a bug in existing functionality introduced by a new version
Traffic Ops
related to Traffic Ops
I'm submitting a ...
Traffic Control components affected ...
Current behavior:
The
POST
handler of the/servers
endpoint returns a500 Internal Server Error
response when the request payload did not specify aprofileId
.Expected / new behavior:
It used to return 400 with a message to the effect that
profileId
is required.Minimal reproduction of the problem with instructions:
Create a Server using
https://{{TO_BASE_URL}}/api/3.0/servers
withoutprofileId
. API will return Internal Server Error.The text was updated successfully, but these errors were encountered: