This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 355
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
Copy link
Copy link
Closed
Closed
Copy link
Labels
Traffic Opsrelated to Traffic Opsrelated to Traffic OpsTraffic Portal v1related to Traffic Portal version 1related to Traffic Portal version 1bugsomething isn't working as intendedsomething isn't working as intendedcache-configCache config generationCache config generationhigh impactimpacts the basic function, deployment, or operation of a CDNimpacts the basic function, deployment, or operation of a CDN
Description
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:
- In TP, create or edit an HTTP*, DNS* or ANY_MAP delivery service and enter a line break in the
Raw Remap Textfield. Note: a textarea has been provided for readability of theRaw Remap Textfield, however, it has the downside of allowing line breaks. - Navigate to the assigned servers for DS. Pick one.
- View config files for the server.
- View the contents of remap.config file and notice the line that doesn't start with
map
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Traffic Opsrelated to Traffic Opsrelated to Traffic OpsTraffic Portal v1related to Traffic Portal version 1related to Traffic Portal version 1bugsomething isn't working as intendedsomething isn't working as intendedcache-configCache config generationCache config generationhigh impactimpacts the basic function, deployment, or operation of a CDNimpacts the basic function, deployment, or operation of a CDN