https://bugzilla.wikimedia.org/show_bug.cgi?id=65405
Bug ID: 65405
Summary: The "process the upload" backend code should have
flags to say "do not overwrite" and "overwrite only"
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: File management
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected]
Blocks: 65338
Web browser: ---
Mobile Platform: ---
In Bug 65338, it turned out (and was proven) that the API allows overwriting
files despite ignorewarnings is not set in race conditions:
Brad Jorsch:
> There's a race condition in the uploading code: it first checks for warnings
> and then processes the upload, and what's happening here is that one of your
> parallel requests is sneaking in an upload between the "check for warnings"
> and "process the upload" steps.
And it is suggested to have some flags in the backend preventing that:
> 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.
--
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