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.

deliveryservices returns Internal Server Error when config parameter doesn't exist #6691

@ericholguin

Description

@ericholguin

This Bug Report affects these Traffic Control components:

  • Traffic Ops

Current behavior:

When sending either a POST or PUT request to /deliveryservices and either themidHeaderRewrite or edgeHeaderRewrite have a value BUT there is no remap.config parameter created, this will result in an Internal Server Error.

Traffic Ops error.log will show:

ERROR: api.go:263: ... ensuring ds parameters:: creating edge header rewrite parameters: executing parameter query for ATS config location: parameter missing (do you have a name=location config_file=remap.config parameter?

Coming from:

return 0, errors.New("executing parameter query for ATS config location: parameter missing (do you have a name=location config_file=remap.config parameter?")

Expected behavior:

Should return a 400 Bad Request with the proper message mentioning that the parameter is required.

Steps to reproduce:

In CiaB, open TP create a delivery service with an Edge Header Rewrite Rule e.g. "edgeHeader1\nedgeHeader2", after having all other values correctly filled in click on the Create button, you should see an Internal Server Error at the top of the page and it will not have created the delivery service. Do the same again this time with an Mid Header Rewrite Rule e.g. "midHeader1\midHeader2" you should again see an Internal Server Error at the top of the page and it will not have created the delivery service.

The same can be done using the Traffic Ops API with either of the edge or mid header rewrite fields containing a value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic Opsbugsomething isn't working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions