https://issues.apache.org/bugzilla/show_bug.cgi?id=54793

--- Comment #2 from Kenkendk <[email protected]> ---
I expect commands to be atomic.

That is, until the file is uploaded successfully, it does not exist.
Thus a failed upload does not require a delete of the target file (but maybe a
temp file).

If two connections are uploading the same file, the current approach would mess
things up too?

If you upload the file to a temporary location, and move into the right spot on
completion, you would never have this problem. Two simultaneous uploads would
also work with "last to finish completely replaces original".

Another approach, which is simpler to implement, is to lock the file while
uploading, so you cannot have competing uploads. In this case, the client would
at least get an error message while the other upload is "in progress".

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to