Page MenuHomePhabricator

[Bug] Special:SetSiteLink shows the form twice after an error
Closed, ResolvedPublic


Special:SetSiteLink contains the form twice when showing an error message after an error:

SetSiteLink.png (1×546 px, 28 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 410213 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/Wikibase@master] Add missing return to SpecialModifyEntity

thiemowmde triaged this task as Medium priority.
thiemowmde moved this task from incoming to ready to go on the Wikidata board.
thiemowmde added a project: good first task.
thiemowmde added subscribers: thiemowmde, daniel.

I was able to reproduce the error quite easily by temporarily adding return Status::newFatal( 'dummy' ); to SpecialWikibaseRepoPage::saveEntity, and simulating an error that way. The same issue with the duplicate form then appears in all special pages that are based on the same abstract class: Special:SetLabel, description, aliases, and sitelinks.

Change 410213 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Add missing return to SpecialModifyEntity

Addshore added a subscriber: Addshore.

It looks like this is fixed

image.png (693×1 px, 78 KB)