GET /api/4.0/servers?profileId={id} does not include all profiles #6834
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
This Bug Report affects these Traffic Control components:
Current behavior:
When making a
GET
request/api/4.0/servers?profileId={id}
whereid
belongs to a profile that is not index 0 in theprofileNames
array the response will not display that server.For example if there exists a server with the
profileNames
:Where the id of the
EDGE_TIER_ATS_CACHE
profile is 13 and the id ofMID_TIER_ATS_CACHE
is 12.If we perform a
GET
request:/api/4.0/servers?profileId=13
we will see the server above returned in the response, howeverif we perform a
GET
request:/api/4.0/servers?profileId=12
(the following profile - at index 1 in the array) that server will not be included in the response.Expected behavior:
Should account for all profiles, including profiles not at index 0 in the profileNames array
Steps to reproduce:
Have a server with multiple profiles, make a
GET
request/api/4.0/servers?profileId={id}
whereid
belongs to the profile NOT at index 0, you will not see the server included in the responseThe text was updated successfully, but these errors were encountered: