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.

Line breaks in DS raw remap text will result in a malformed remap.config file  #4298

@mitchell852

Description

@mitchell852

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:

When creating or editing a delivery service of type HTTP*, DNS* or ANY_MAP, a line break in the remapText field will result in a malformed remap.config file being deployed to all of the edge caches assigned to the delivery service which can have a negative impact across multiple delivery services (if multiple delivery services are assigned to the cache).

When remapText = foo[line break]bar, the applicable line in remap.config will look like this:

map	http://edge.demo1.mycdn.ciab.test/     http://origin.infra.ciab.test/  foo
bar
map	http://edge.demo2.mycdn.ciab.test/     http://origin2.infra.ciab.test/

Expected / new behavior:

On API DS create/update, any line breaks in the remapText field need to be removed.

Minimal reproduction of the problem with instructions:

  1. In TP, create or edit an HTTP*, DNS* or ANY_MAP delivery service and enter a line break in the Raw Remap Text field. Note: a textarea has been provided for readability of the Raw Remap Text field, however, it has the downside of allowing line breaks.
  2. Navigate to the assigned servers for DS. Pick one.
  3. View config files for the server.
  4. View the contents of remap.config file and notice the line that doesn't start with map

Metadata

Metadata

Assignees

Labels

Traffic Opsrelated to Traffic OpsTraffic Portal v1related to Traffic Portal version 1bugsomething isn't working as intendedcache-configCache config generationhigh impactimpacts the basic function, deployment, or operation of a CDN

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions