stable

Clone or download

Read-only

story #7704: manage concurrent artifact edition via REST

- if you PUT an artifact and you send the If-Match header and give it the value of the Etag header then the response is successful; - if you PUT an artifact and you send the If-Match header and it a different value than the Etag header then you get a 412 error; - if you PUT an artifact and you don't send the If-Match 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: Id89d04d5d6913043295cdcf7074c1f8118be02d3

Modified Files

Name
M plugins/tracker/include/REST/Artifact/ArtifactUpdater.class.php +18 −4 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +15 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php +7 −0 Go to diff View file
M src/common/REST/Header.class.php +5 −0 Go to diff View file
M tests/rest/ArtifactsTest.php +110 −9 Go to diff View file