/servercheck does not filter when extra query parameters are given #5609
Labels
bug
something isn't working as intended
low impact
affects only a small portion of a CDN, and cannot itself break one
Traffic Ops
related to Traffic Ops
I'm submitting a ...
Traffic Control components affected ...
Current behavior:
GET requests to
/servercheck
can be filtered by ID and/or hostName, but if an extra query parameter is provided it breaks filtering. That is,GET /servercheck?id=1
returns only the serverchecks for server 1, butGET /servercheck?id=1&foo=bar
returns all serverchecks for all servers.Expected behavior:
The API should perform requested filtering and ignore all unrelated query parameters.
Minimal reproduction of the problem with instructions:
make a GET request to
/servercheck
with anid
query string parameter set to the ID of some cache server, plus any other query parameter (excepthostName
,limit
oroffset
) with any value.The text was updated successfully, but these errors were encountered: