Open JustinKyleJames opened 1 month ago
This will need to be documented in the README.
We also need to pick an appropriate HTTP status code to return to the client.
i propose...
409 Conflict - https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409
In other systems, 409 responses may be used for implementation-specific purposes, such as to indicate that the server has received multiple requests to update the same resource.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409#concurrent_tasks_disallowed
While I believe AWS allows multiple multipart uploads simultaneously to the same key, this doesn't make sense in the way we are implementing things as we are now sometimes writing parts directly to iRODS.
We should reject a
CreateMultipartUpload
request if there is already one in progress to that same key.