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/04/27 23:34:53 UTC

[GitHub] [trafficcontrol] ocket8888 opened a new issue, #6799: Creating a new Servercheck Extension without a "shortName" causes segfault

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

   ## This Bug Report affects these Traffic Control components:
   - Traffic Ops
   
   ## Current behavior:
   Creating a new Servercheck without a `servercheck_shortname` property (or one set to `null`) causes a `nil` pointer dereference segmentation fault and returns a `500 Internal Server Error` response.
   
   ## Expected behavior:
   If a required property is missing from a request, the response should be a `400 Bad Request` with an error-level Alert describing what's missing.
   
   ## Steps to reproduce:
   1. `topost -kfp servercheck/extensions '{"name": "", "info_url": "", "version": "", "script_file": "", "isactive": 0, "type": "CHECK_EXTENSION_BOOL"}'`


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