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 06:19:00 UTC

[GitHub] [trafficcontrol] ocket8888 opened a new issue, #6787: Creating invalid DSRs causes Internal Server error (segmentation fault)

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

   ## This Bug Report affects these Traffic Control components:
   - Traffic Ops
   
   ## Current behavior:
   In APIv3 Traffic Ops does not check if a request's fields are `nil` before accessing them, causing an Internal Server Error when required fields are missing.
   
   ## Expected behavior:
   Missing required fields should result in a `400 Bad Request` response naming the missing fields.
   
   ## Steps to reproduce:
   ```console
   $ topost -kpa 3.1 deliveryservice_requests '{}'
   {
   	"alerts": [
   		{
   			"text": "Internal Server Error",
   			"level": "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.apache.org

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