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

   ## This Bug Report affects these Traffic Control components:
   - Traffic Ops
   
   ## Current behavior:
   When creating a new Role in APIv3, omitting the `capabilities` property (or 
equivalently setting it to `null`) causes an internal server error stepping 
from a segfault caused by dereferencing a `nil` pointer.
   
   This issue is specific to API version 3 - in API version 4 the property 
doesn't even exist (and the underlying implementation is different - doesn't 
use the CRUDer).
   
   ## Expected behavior:
   If a request is missing a required property, the response should be a `400 
Bad Request` with an error-level Alert that explains what's missing.
   
   ## Steps to reproduce:
   1. `topost -kp roles '{"name": "testquest", "privLevel": -1, "description": 
"a"}'`
   


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

Reply via email to