ocket8888 opened a new issue #6383: URL: https://github.com/apache/trafficcontrol/issues/6383
## This Bug Report affects these Traffic Control components: - Traffic Ops ## Current behavior: The only valid values for the [Geolocation Provider](https://traffic-control-cdn.readthedocs.io/en/latest/overview/delivery_services.html#geolocation-provider) property of a Delivery Service are `0` and `1`, but the API will let you create a Delivery Service with Geolocation Provider values like `2`, `-7`, or `9999`. The behavior caused by these values is not known. ## Expected behavior: Ideally, Geolocation Provider would be an enumerated set of string values - probably `MAXMIND` and `NEUSTAR` - but failing that, the API should at least return a client error when the client makes a request with an invalid value. ## Steps to reproduce: ```console $ topost -kp deliveryservices '{ "active": false, "cdnId": 2, "displayName": "test", "dnsBypassCname": "test", "dscp": 1, "geoLimit": 1, "geoLimitCountries": "[US, CA]", "geoProvider": -7, "initialDispersion": 1, "ipv6RoutingEnabled": true, "logsEnabled": true, "missLat": 0, "missLong": 0, "multiSiteOrigin": false, "orgServerFqdn": "http://origin.infra.ciab.test", "protocol": 7, "qstringIgnore": 5, "rangeRequestHandling": 0, "regionalGeoBlocking": false, "tenantId": 1, "typeId": 1, "xmlId": "test" }' ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
