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 2021/11/22 01:54:06 UTC

[GitHub] [trafficcontrol] ocket8888 opened a new issue #6372: Improper POST requests to /cachegroups cause segfaults

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


   ## This Bug Report affects these Traffic Control components:
   - Traffic Ops
   
   ## Current behavior:
   Submitting a POST request to /cachegroups with a null or omitted `name` causes a runtime memory violation in Traffic Ops, whereupon it will respond to the request with a 500 Internal Server Error and matching Alert. This happens because Topology validation dereferences the Cache Group's Name before checking if it's `nil`. For this reason I suspect it's also an issue for PUT requests, though I've not checked.
   
   ## Expected behavior:
   An improper request should return a 400-level error and an alert that describes what properties are missing from the request when that is the case.
   
   ## Steps to reproduce:
   `topost -k cachegroups '{"typeId": 23}'` (replace `23` with the ID of any Type that has a `useInTable` value of `cachegroup`)
   


-- 
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

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



[GitHub] [trafficcontrol] ericholguin commented on issue #6372: Improper POST requests to /cachegroups cause segfaults

Posted by GitBox <gi...@apache.org>.
ericholguin commented on issue #6372:
URL: https://github.com/apache/trafficcontrol/issues/6372#issuecomment-1034173464


   Can confirm this is also an issue with PUT requests to /cachegroups, when only `typeId` is in the response and `name` is null or omitted it results in a 500 Internal Server Error


-- 
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

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