Last modified: 2014-10-12 18:19:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71536, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69536 - Uncaught exception if a badge id does not exist
Uncaught exception if a badge id does not exist
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
: need-volunteer
: 71232 (view as bug list)
Depends on:
Blocks: 40810
  Show dependency treegraph
 
Reported: 2014-08-14 12:56 UTC by Aude
Modified: 2014-10-12 18:19 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Aude 2014-08-14 12:56:44 UTC
If one of the items in my badgeItems setting does not exist (e.g. deleted or misconfigured), then I get an uncaught exception on Special:SetSiteLink:

Unexpected non-MediaWiki exception encountered, of type "UserInputException"
[7e14a62b] /index.php?title=Special:SetSiteLink Exception from line 145 of /Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialWikibaseRepoPage.php: Entity id is unknown
Backtrace:
#0 /Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialSetSiteLink.php(348): Wikibase\Repo\Specials\SpecialWikibaseRepoPage->loadEntity(Wikibase\DataModel\Entity\ItemId)
#1 /Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialSetSiteLink.php(333): Wikibase\Repo\Specials\SpecialSetSiteLink->getTitleForBadge(Wikibase\DataModel\Entity\ItemId)
#2 /Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialSetSiteLink.php(260): Wikibase\Repo\Specials\SpecialSetSiteLink->getBadgesOptionsHtml()
#3 /Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialModifyEntity.php(205): Wikibase\Repo\Specials\SpecialSetSiteLink->getFormElements(NULL)
#4 /Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialModifyEntity.php(99): Wikibase\Repo\Specials\SpecialModifyEntity->setForm(NULL)
#5 /Library/WebServer/Documents/php-master/includes/specialpage/SpecialPage.php(357): Wikibase\Repo\Specials\SpecialModifyEntity->execute(NULL)
#6 /Library/WebServer/Documents/php-master/includes/specialpage/SpecialPageFactory.php(516): SpecialPage->run(NULL)
#7 /Library/WebServer/Documents/php-master/includes/MediaWiki.php(300): SpecialPageFactory::executePath(Title, RequestContext)
#8 /Library/WebServer/Documents/php-master/includes/MediaWiki.php(609): MediaWiki->performRequest()
#9 /Library/WebServer/Documents/php-master/includes/MediaWiki.php(460): MediaWiki->main()
#10 /Library/WebServer/Documents/php-master/index.php(46): MediaWiki->run()
#11 {main}
Comment 1 Bene* 2014-08-21 14:07:53 UTC
I'm not sure if we should check for the existance of the badge item in every place because the exception is the result of a poor configuration. However, we should perhaps prevent the deletion of those badge items although this would also remove responsibilities from the community and its administrators.
Comment 2 Gerrit Notification Bot 2014-09-27 14:49:31 UTC
Change 163351 had a related patch set uploaded by Bene:
Catch exceptions on SpecialSetSiteLink

https://gerrit.wikimedia.org/r/163351
Comment 3 Bene* 2014-10-12 06:37:40 UTC
*** Bug 71232 has been marked as a duplicate of this bug. ***
Comment 4 Gerrit Notification Bot 2014-10-12 18:04:32 UTC
Change 163351 merged by jenkins-bot:
Catch exceptions on SpecialSetSiteLink

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links