Robert Scrimo created TC-500:
--------------------------------

             Summary: Creating/Updating a Delivery Service via API has length 
constraint on displayName of 48, but no such constraint in UI code
                 Key: TC-500
                 URL: https://issues.apache.org/jira/browse/TC-500
             Project: Traffic Control
          Issue Type: Bug
          Components: Traffic Ops API
    Affects Versions: 2.1.0
            Reporter: Robert Scrimo


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, this 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to