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.

Routing Name can be changed to default #7094

@ocket8888

Description

@ocket8888

This Bug Report affects these Traffic Control components:

  • Traffic Ops

Current behavior:

When updating a Delivery Service, the routing name is immutable if it has SSL keys (since that would invalidate them) - unless you change the Routing Name to the default routing name. You can only do this by omitting that field or explicitly setting it to null, in which case Traffic Ops silently updates it to "cdn", even if changing the Routing Name would not normally be allowed.

Expected behavior:

Routing Names should just be immutable. Probably just all the time, even when there are no SSL keys, just for consistency. Also, per HTTP spec, the PUT request really ought to be a FULL representation of the DS - a null value shouldn't be implicitly converted to something besides null.

But those are just my opinions. Regardless, the Routing Name should be incapable of changing when it's supposed to be immutable, even to a default value.

Steps to reproduce:

  1. Create a DS with the Routing Name e.g. "notcdn"
  2. Ensure SSL keys have been generated for the DS (may have been done automatically on creation)
  3. toget -kpa 3.1 "deliveryservices/$ID" | jq '.response[0]' | jq '.routingName = null' | toput -kpa 3.1 "deliveryservices/$ID" where $ID is the ID of the DS created in step 1.
  4. Observe in the output that the Routing Name has been changed to "cdn".

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