Author: neilk
Description:
Duplicate checking suddenly isn't working.
This may be related to recent changes to the Title::verifyTitlePermissions() API.
Version: unspecified
Severity: normal
Author: neilk
Description:
Duplicate checking suddenly isn't working.
This may be related to recent changes to the Title::verifyTitlePermissions() API.
Version: unspecified
Severity: normal
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Declined | None | T38680 Upload Wizard release "elvis" (tracking) | |||
Resolved | None | T29260 UploadWizard 1.0 (tracking) | |||
Resolved | None | T30320 UploadWizard duplicate image content (hash) check is broken |
neilk wrote:
This bug is only hit if you are trying to upload a file with both the same filename and the same content.
The problem is that the API returns only one error at a time. It believes that same-filename error is more important, so it returns that one. Conversely, we believe that same filename isn't important yet (since we plan to surface that problem later), so we ignore it.
Solution?
We could check for same hash separately:
api.php?action=query&list=allimages&format=json&aisha1=<hash>
...and make sure the number of matches is 0.