Page MenuHomePhabricator

Fatal MWException on Special:ExternalGuidance
Closed, ResolvedPublicPRODUCTION ERROR

Description

trace
MWException: MediaWiki\Extension\ExternalGuidance\SpecialExternalGuidance::mtContextGuidance: One of the mandatory parameters missing

Backtrace:

#0 /srv/mediawiki/php-1.33-wmf-17/extensions/ExternalGuidance/specials/SpecialExternalGuidance.php(42): MediaWiki\Extension\ExternalGuidance\SpecialExternalGuidance->mtContextGuidance(WebRequest, OutputPage)
#1 /srv/mediawiki/php-1.33-wmf-17/includes/specialpage/SpecialPage.php(569): MediaWiki\Extension\ExternalGuidance\SpecialExternalGuidance->execute(NULL)
#2 /srv/mediawiki/php-1.33-wmf-17/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(NULL)
#3 /srv/mediawiki/php-1.33-wmf-17/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#4 /srv/mediawiki/php-1.33-wmf-17/includes/MediaWiki.php(867): MediaWiki->performRequest()
#5 /srv/mediawiki/php-1.33-wmf-17/includes/MediaWiki.php(517): MediaWiki->main()
#6 /srv/mediawiki/php-1.33-wmf-17/index.php(42): MediaWiki->run()

Impact

This is a fatal application error exposed on an unauthenticated GET request (e.g. regular link navigation). This can increase error levels for the backend in MediaWiki, as well as in the frontend in our HTTP-level service monitoring given these errors produced uncacheable HTTP code 500 responses.

Event Timeline

Change 491220 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ExternalGuidance@master] Do not list SpecialExternalGuidance in Special:SpecialPages

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

Change 491220 merged by jenkins-bot:
[mediawiki/extensions/ExternalGuidance@master] Do not list SpecialExternalGuidance in Special:SpecialPages

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

Not sure what I can verify here. When I access the above url I get an error displayed but I'm not sure if things were improved on how this error is dealt internally:

Screenshot 2019-02-25 at 17.03.12.png (423×841 px, 29 KB)

The patch made it so that search-engine crawlers and curious users are less likely to reach this url. But the problem itself has not been fixed yet.

We might need to display a friendly message when users access this special page without any contextual parameters(Since we don't list this page anywhere, this is less likely, still...)

@Pginer-WMF If you can provide some input on what to display, I can use it.

Instead of providing a form you could print an error message when no parameter is set. See https://en.wikipedia.org/wiki/Special:MovePage for an example

Change 497224 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ExternalGuidance@master] Special:ExternalGuidance: Show friendly error message instead of MWException

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

Change 497224 merged by jenkins-bot:
[mediawiki/extensions/ExternalGuidance@master] Special:ExternalGuidance: Show friendly error message instead of MWException

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

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:07 PM