You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2022/07/15 00:14:50 UTC

[GitHub] [trafficcontrol] ocket8888 opened a new issue, #6966: /consistenthash Internal Server Error when requesting a CDN with no Traffic Routers

ocket8888 opened a new issue, #6966:
URL: https://github.com/apache/trafficcontrol/issues/6966

   ## This Bug Report affects these Traffic Control components:
   - Traffic Ops
   
   ## Current behavior:
   If you make a `POST` request to `/consistenthash` (any version) with a request body that specifies a `cdnId` that identifies a CDN which contains no servers that have a Type that has the exact name `CCR`, it will respond with a `500 Internal Server Error` response.
   
   ## Expected behavior:
   When requesting testing a consistent hashing regular expression for a CDN that contains no Traffic Routers, the fault is with the requestor. That operation cannot succeed because an invalid parameter was specified. Therefore, the response code should be a `400 Bad Request` or similar with an Alert that describes the problem.
   
   The ubiquitous "ALL" CDN exists in all working ATC installations, and while that can contain Traffic Routers I'd be surprised if anyone's actually did in production. So while this bug is probably not actually going to cause any problems, it's pretty much guaranteed to be reproducible in nearly every environment.
   
   ## Steps to reproduce:
   - `topost -k consistenthash '{"cdnId": 1, "regex": ".*", "requestPath": "/asset.m3u8"}'` (assuming the ID of the ALL CDN and/or some CDN with no Traffic Routers is `1`).
   


-- 
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: issues-unsubscribe@trafficcontrol.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org