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.

Fix bugs for API steering/{{ID}}/targets #4767

@dpham692

Description

@dpham692

I'm submitting a ...

  • bug report
  • new feature / enhancement request
  • improvement request (usability, performance, tech debt, etc.)
  • other

Traffic Control components affected ...

  • CDN in a Box
  • Documentation
  • Grove
  • Traffic Control Client
  • Traffic Monitor
  • Traffic Ops
  • Traffic Ops ORT
  • Traffic Portal
  • Traffic Router
  • Traffic Stats
  • Traffic Vault
  • unknown

Current behavior:

User can create a steering target for non steering DS.
For example:
Do a POST /api/3.0/steering/id/targets but using other DS id besides steering.
The API will response 200 OK

{
    "alerts": [
        {
            "text": "steeringtarget was created.",
            "level": "success"
        }
    ],
    "response": {
        "deliveryService": "censored",
        "deliveryServiceId": "censored",
        "target": "censored",
        "targetId": 16,
        "type": "censored",
        "typeId": 43,
        "value": -1
    }
}

Expected / new behavior:

API should not let user create target for non steering ds.

Minimal reproduction of the problem with instructions:

Anything else:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic Opsbugsomething isn't working as intendedlow impactaffects only a small portion of a CDN, and cannot itself break one

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions