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/04/19 22:34:25 UTC

[GitHub] [trafficcontrol] rob05c opened a new issue #3509: Add Traffic Ops If-Match and If-Unmodified-Since Support in Server and Clients

rob05c opened a new issue #3509: Add Traffic Ops If-Match and If-Unmodified-Since Support in Server and Clients
URL: https://github.com/apache/trafficcontrol/issues/3509
 
 
   Currently, there is a race condition if multiple people PUT an object, they will overwrite each-other without realizing it.
   
   HTTP has a well-established solution for this: `If-Match` and `If-Unmodified-Since`.
   https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since
   https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match
   
   We should implement this, to prevent races and people accidentally overwriting each other.
   
   It shouldn't be too difficult to implement. We can generate an ETag+Last-Modified header from the resource's `last_updated` field, and likewise compare them when we get a request with IM or IUS.
   
   It's tempting to add the `bug` tag, since this is a logical bug, even if it's not a code bug. I won't, but I wouldn't object if someone else did.

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