Page MenuHomePhabricator

UploadWizard gives author as "[[User:Example|Example]]"
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

  • Upload a file via Special:UploadWizard
  • Give "These are entirely my own works" as a source
  • See the file page.

What happens?:
The author is given as "[[User:Example|Example]]" putting the whole wikitext syntax again as the label of the link for the author. In wikitext this is:

[[User:Example|[[User:Example|Example]]]]

Most recent example: File:Jamʻīyat dār al-ḥaḍānah bi-al-Iskandarīyah in Al Sayed Mohamed Karim Street 02.jpg.

UploadWizard has started this behavior on 16 October 2024 between 16:42 and 18:41 UTC for me and it still persists today.

Apparently not all files uploaded with UploadWizard as own works at Special:NewFiles are concerned.

What should have happened instead?:
The author should simply be given as "Example", in wikitext this is:

[[User:Example|Example]]

Other information (browser name/version, screenshots, etc.):
Mozilla Firefox Snap for Ubuntu 131.0.2

Event Timeline

I have probably found what caused it on my side: In the UploadWizard preferences as the "Author's name" I have put "[[User:Marsupium|Marsupium]]". Until 16 October this had not caused any issues though and I guess there was some reason to put that in the past. So it looks like I can fix it for me, but the syntax of this "Author's name" still seems to have changed in an unexpected way.

Change #1081919 had a related patch set uploaded (by Cparle; author: Cparle):

[mediawiki/extensions/UploadWizard@master] Handle wikitext in UW author name pref

https://gerrit.wikimedia.org/r/1081919

Change #1081919 merged by jenkins-bot:

[mediawiki/extensions/UploadWizard@master] Handle wikitext in UW author name pref

https://gerrit.wikimedia.org/r/1081919

Etonkovidova subscribed.

Verified on commons beta - works as expected. The wikitext, e.g. if "Author's name" preference in UploadWizard is [[User:Example|Example]], a user name will be correctly displayed on a file page.