You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/12/05 21:16:10 UTC

[GitHub] ocket8888 opened a new issue #3095: /api/1.x/parameters/profile/{{name}} gives incorrect response for non-existent profiles

ocket8888 opened a new issue #3095: /api/1.x/parameters/profile/{{name}} gives incorrect response for non-existent profiles
URL: https://github.com/apache/trafficcontrol/issues/3095
 
 
   The endpoint at `/api/1.x/parameters/profile/{{name}}` will return a `200 OK` success and empty `"response"` array for profiles that don't exist. The proper response to a request for a non-existent resource is a `404 NOT FOUND`. Besides this, an empty response array from this endpoint normally indicates that a profile has no parameters, and so tools/admins may subsequently attempt to assign parameters to said profile, which will confusingly and inevitably fail.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services