ocket8888 opened a new issue #6381: URL: https://github.com/apache/trafficcontrol/issues/6381
## This Bug Report affects these Traffic Control components: - Traffic Ops ## Current behavior: The [Range Request Handling](https://traffic-control-cdn.readthedocs.io/en/latest/overview/delivery_services.html#range-request-handling) property of a Delivery Service has only four valid values, `0`, `1`, `2`, and `3`. But the API will let you create a Delivery Service that has a Range Request Handling of `-10`, or `1000000`. It is unknown how such values affect behavior. ## Expected behavior: Ideally, the only allowed values of Range Request Handling would be an enumeration of string values rather than opaque magic numbers. But either way, the only values allowed by the API should be those with any meaning. Specifically, an improper value should return a client-level error with an appropriate error-level alert describing that the value is improper. ## Steps to reproduce: ```console $ topost -kp deliveryservices '{ "active": false, "cdnId": 2, "displayName": "test", "dnsBypassCname": "test", "dscp": 1, "geoLimit": 1, "geoLimitCountries": "[US, CA]", "geoProvider": 0, "initialDispersion": 1, "ipv6RoutingEnabled": true, "logsEnabled": true, "missLat": 0, "missLong": 0, "multiSiteOrigin": false, "orgServerFqdn": "http://origin.infra.ciab.test", "protocol": 7, "qstringIgnore": 5, "rangeRequestHandling": -10, "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]
