Uploaded image for project: 'Traffic Control'
  1. Traffic Control
  2. TC-500

Creating/Updating a Delivery Service via API has length constraint on displayName of 48, but no such constraint in UI code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1.0, 2.2.0
    • 2.2.0
    • Traffic Ops API
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rscrimojr Robert Scrimo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: