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.
TO API allows creation of a profile with spaces #4219
Copy link
Copy link
Open
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 intended
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 making a POST request to /profiles and the name key is set to a string value that contains spaces, the response returned is:
HTTP\1.1 200 OK
{
"alerts": [
{
"text": "profile was created.",
"level": "success"
}
],
"response": {
"id": 632,
"lastUpdated": "2019-12-17 17:55:34+00",
"name": "test Profile5",
"description": "Test Profile",
"cdn": 2,
"routingDisabled": false,
"type": "UNK_PROFILE"
}
}
The profiles/name/{{name}}/copy/{{copy}} endpoint is also affected by this bug.
This also affects Traffic Portal when clicking on Clone Profile, the user can input a profile name with spaces and it will create the profile with no errors.
Expected / new behavior:
Should return:
HTTP\1.1 400 Bad Request
{
"alerts": [
{
"text": "'name' cannot contain any spaces",
"level": "error"
}
]
}
Minimal reproduction of the problem with instructions:
Anything else:
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 intended