stable

Clone or download

Read-only

story #7704: manage concurrent artifact edition via REST

- if you PUT an artifact and you send the If-Unmodified-Since header and give it the value of the Last-Modified header then the response is successful; - if you PUT an artifact and you send the If-Unmodified-Since header and it a different value than the Last-Modified header then you get a 412 error; - if you PUT an artifact and you don't send the If-Unmodified-Since header, then no check is done and you overwrite the existing value. This is an "I care if you care" rule which means that we don't break current implementations. Change-Id: Ia2d06ab9ec88cf61354f1e048ab1721beb1ee3b2

Modified Files

Name
M plugins/tracker/include/REST/Artifact/ArtifactReference.class.php +11 −0 Go to diff View file
M plugins/tracker/include/REST/Artifact/ArtifactUpdater.class.php +15 −0 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +13 −3 Go to diff View file
M tests/rest/ArtifactsTest.php +68 −3 Go to diff View file