Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

DELETE servers/{{ID}} response with an APIv4 server representation regardless of the requested version #6907

@ocket8888

Description

@ocket8888

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:

# 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"

Metadata

Metadata

Assignees

Labels

Traffic Opsrelated to Traffic Opslow difficultythe estimated level of effort to resolve this issue is lowlow impactaffects only a small portion of a CDN, and cannot itself break oneregression buga bug in existing functionality introduced by a new version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions