Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.1.0, 2.2.0
-
None
Description
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.