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 2022/06/17 15:28:58 UTC

[GitHub] [trafficcontrol] ocket8888 opened a new issue, #6907: DELETE servers/{{ID}} response with an APIv4 server representation regardless of the requested version

ocket8888 opened a new issue, #6907:
URL: https://github.com/apache/trafficcontrol/issues/6907

   ## This Bug Report affects these Traffic Control components:
   - Traffic Ops
   
   ## Current behavior:
   When deleting a server, the `response` will be an APIv4 representation of the server, regardless of the version of the API used in the request. This is a breaking change to that API endpoint in violation of our versioning contract.
   
   ## Expected behavior:
   The requested API version should be used to determine the response.
   
   ## Steps to reproduce:
   ```bash
   # Replace the typeId, cdnId, statusId, physLocationId, and cachegroupId
   # with whatever values are valid for your Traffic Ops installation.
   ID=$(topost -ka 3.1 servers '{
   	"interfaces": [
   		{
   			"name": "eth0",
   			"ipAddresses": [
   				{
   					"address": "127.0.0.1",
   					"serviceAddress": true
   				}
   			]
   		}
   	],
   	"typeId": 11,
   	"statusId": 1,
   	"cachegroupId": 1,
   	"profileId": 10,
   	"cdnId": 2,
   	"physLocationId": 1,
   	"domainName": "test",
   	"hostName": "quest"
   }' | jq '.response.id')
   todelete -kpa 3.1 "servers/$ID"
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] rawlinp closed issue #6907: DELETE servers/{{ID}} response with an APIv4 server representation regardless of the requested version

Posted by GitBox <gi...@apache.org>.
rawlinp closed issue #6907: DELETE servers/{{ID}} response with an APIv4 server representation regardless of the requested version
URL: https://github.com/apache/trafficcontrol/issues/6907


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] ocket8888 commented on issue #6907: DELETE servers/{{ID}} response with an APIv4 server representation regardless of the requested version

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #6907:
URL: https://github.com/apache/trafficcontrol/issues/6907#issuecomment-1158994295

   This doesn't actually appear to affect APIv2, only 3.0 and 3.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org