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.

Incorrect error message from /servers/details when no query string parameter given #6800

@ocket8888

Description

@ocket8888

This Bug Report affects these Traffic Control components:

  • Traffic Ops

Current behavior:

/servers/details requires one of the query string parameters hostName or physLocationID be specified, but if neither are, the error message says:

{
	"alerts": [
		{
			"text": "Missing required fields: 'hostname' or 'physLocationID'",
			"level": "error"
		}
	]
}

Expected behavior:

The error message should name the actual required query string parameter: hostName not hostname.

Steps to reproduce:

  1. toget -kp '/servers/details?hostname=anything'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic Opsbugsomething isn't working as intendedlow difficultythe estimated level of effort to resolve this issue is lowlow impactaffects only a small portion of a CDN, and cannot itself break one

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions