[TC-500] Creating/Updating a Delivery Service via API has length constraint on displayName of 48, but no such constraint in UI code #994
Labels
bug
something isn't working as intended
good first issue
first-time committers will find this easy to resolve
low impact
affects only a small portion of a CDN, and cannot itself break one
Traffic Ops
related to Traffic Ops
Traffic Portal v1
related to Traffic Portal version 1
Creating/Updating a Delivery Service via API code has length constraint on `displayName` of 48, but there is no such constraint in the UI code so any user can update the value to more than 48 characters. The Database field is Text which is described as "variable unlimited length" in the Postgres documentation. However, the value may be limited by the GUI field if such a constraint exists.
NOTE: The GET methods for /api/1.2/deliveryservices does not check the length on the `displayName` field, so, it will return whatever is in the database for `displayName`.
Work Around: Upon getting the Delivery Service information from the API, in order to update/create the Delivery Service via the API you will need to limit the number of characters in the `displayName` to 48.
NOTE: Other versions of Traffic Ops may be affected.
Author: Robert Scrimo
JIRA Link: https://issues.apache.org/jira/browse/TC-500
Found Version: 2.1.0
The text was updated successfully, but these errors were encountered: