Get request to api_capabilities using query values that don't exist return null #4257
Closed
2 of 16 tasks
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:
When making a
GET
request toapi_capabilities
with any of the following query parameters with values that do not exist:?capability=DOESNTEXIST
?route=DOESNTEXIST
?id=100000000
Will return a null response:
Expected / new behavior:
Should return an empty array.
Minimal reproduction of the problem with instructions:
Anything else:
The
capability
query parameter is the only parameter that perl handled, and it would return an empty array. These other query parameters, should either be removed or should also return an empty array.The text was updated successfully, but these errors were encountered: