moltzaum opened a new issue #3097: Blank fields incorrectly returns 200 OK when 
POSTing
URL: https://github.com/apache/trafficcontrol/issues/3097
 
 
   curl -Lvsk --cookie $mc -XPOST https://localhost:6443/api/1.2/cdns -d 
@cdn.json
   < HTTP/1.1 200 OK
   {"alerts":[{"text":"'name' cannot be blank","level":"error"}]}
   
   The same happens for profiles, and I presume other endpoints as well.
   
   `shared_handlers.go:320` looks like it takes the validate errors and returns 
`http.StatusBadRequest`, which makes me a little confused. This bug causes the 
profiles api test to fail when it posts a "bad profile" (one without required 
fields).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to