Page MenuHomePhabricator

Upload File page erroneously states that a file has the same name as one that already exists (due to file redirect)
Open, Needs TriagePublicBUG REPORT

Assigned To
None
Authored By
UFFR87
Sep 9 2023, 1:29 AM
Referenced Files
Restricted File
Sep 10 2023, 5:28 PM
Restricted File
Sep 10 2023, 5:28 PM
F37677271: image.png
Sep 9 2023, 1:29 AM

Description

Steps to replicate the issue (include links if applicable):

  • Download the image file (source: Fandom).
  • Ensure that the wiki has "Spectre_and_Intel_logos_combined.png" (on my wiki).
  • Try to upload the first file.

What happens?:
The page states that the two files have the same name and the one I am uploading will overwrite the one already on the site. However, they do not share the same name. In fact, the names are very different from each other.

What should have happened instead?:
Nothing should have happened, the two files have very different names.

Software version (skip for WMF-hosted wikis like Wikipedia):
MediaWiki 1.40.0
PHP 8.1.2-1ubuntu2.14 (fpm-fcgi)

Other information (browser name/version, screenshots, etc.):
Using Firefox Browser 117.0 (64-bit).
More detailed version and library info can be found on the wiki itself:
https://ntmwiki.u-group13.org/wiki/index.php?title=Special:Version

Screenshot of what occurs:

image.png (840×1 px, 99 KB)

Event Timeline

This is because on Commons, File:Meltdown.png redirects to File:Spectre and Intel logos combined.png, which means File:Meltdown.png do exists on your wiki: https://ntmwiki.u-group13.org/wiki/index.php?title=File:Meltdown.png.

This is not very obvious currently. Maybe the error message should have used the actual redirect name that matches. But then if it tells you File:Meltdown.png exists, you might be confused with what https://ntmwiki.u-group13.org/wiki/index.php?title=File:Meltdown.png&redirect=no currently shows (no hint of what is happening)

See also T212687: Local file page has bugs if there is a redirect on Shared under the same name, T30299: An image redirect from a foreign shared File Repository overrides local wiki page.

Umherirrender renamed this task from Upload File page erroniously states that a file has the same name as one that already exists to Upload File page erroniously states that a file has the same name as one that already exists (due to file redirect).Sep 10 2023, 1:25 PM
Reedy renamed this task from Upload File page erroniously states that a file has the same name as one that already exists (due to file redirect) to Upload File page erroneously states that a file has the same name as one that already exists (due to file redirect).Sep 10 2023, 3:25 PM

Why does that redirect exist anyway? It couldn't've been of my creation,
I pretty much just setup the wiki when I began trying to upload files to it.

  • {F37684372, layout=link}
  • {F37684371, layout=link}

Why does that redirect exist anyway? It couldn't've been of my creation,

It exists because you're using $wgUseInstantCommons (or something equivalent to that). You can disable the feature if it's confusing to you.