https://bugzilla.wikimedia.org/show_bug.cgi?id=65338

--- Comment #12 from Rainer Rillke @commons.wikimedia <[email protected]> ---
(In reply to Brad Jorsch from comment #11)
Thanks for tracking this down, Brad.

> If the "process the upload" backend code were to have flags to say "do not 
> overwrite" and "overwrite only", we could use that from the API code to fix 
> this race condition.
A new bug demanding that? The new bug blocking this bug?
Or can the API just block other uploads with the same title while one is being
processed? Is there shared memory between the servers that run the API code
except the database?

Just as a side note: It appears to happen more or less frequently that people
upload two files under the same title by accident. This is, due to the flow of
UploadWizard, which encourages uploading directly from your camera's folder.
Then the user is renaming the files and can easily miss that there's a file
with the same name already in the list. I’ve submitted a patch for UplaodWizard
but I would welcome if we could make the API code also safe for this condition.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to