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 2019/11/01 20:33:29 UTC

[GitHub] [trafficcontrol] rob05c commented on issue #4068: Admin can assign User to a Federation with wrong PARAMETER

rob05c commented on issue #4068: Admin can assign User to a Federation with wrong PARAMETER
URL: https://github.com/apache/trafficcontrol/issues/4068#issuecomment-548940913
 
 
   Rejecting that would also be a violation of the Robustness Principle, "Be liberal in what you accept, conservative in what you send." (https://tools.ietf.org/html/rfc1122#section-1.2.2, https://en.wikipedia.org/wiki/Robustness_principle). 
   
   I know it's common for a lot of APIs to reject unknown things like that, but in general, it makes servers more robust, and makes integration and interoperability better and work more and fail less, when the Robustness Principle is followed.
   
   TC mostly follows it, though there's not a hard rule and I'm sure there are places it doesn't. I know I've said this before, but I'll keep saying it: we should follow the Robustness Principle wherever possible. There are cases like this one (`"userIdssss": [2],`) that can be confusing, but for the vast majority of cases it makes TO and TC more robust and resilient to imperfect input, and easier for clients to integrate and work with.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services