Last modified: 2012-04-20 20:29:44 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 T34032, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32032 - Give error message, when trying to watch a page in special or media namespace
Give error message, when trying to watch a page in special or media namespace
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Watchlist (Other open bugs)
1.18.x
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-29 08:46 UTC by db [inactive,noenotif]
Modified: 2012-04-20 20:29 UTC (History)
2 users (show)

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


Attachments

Description db [inactive,noenotif] 2011-10-29 08:46:18 UTC
When visit a special page with action=watch, this action is ignored and the special page is shown, please show a error message instead.

When visit a page in media namespace with action=watch a MediaWiki internal error is shown, please show a error message instead.

Thanks.

MediaWiki internal error.

Original exception: exception 'MWException' with message 'MWNamespace::getTalk does not make any sense for given namespace -2' in /home/wikipedia/common/php-1.18/includes/Namespace.php:40
Stack trace:
#0 /home/wikipedia/common/php-1.18/includes/Namespace.php(84): MWNamespace::isMethodValidFor(-2, 'MWNamespace::ge...')
#1 /home/wikipedia/common/php-1.18/includes/Title.php(2844): MWNamespace::getTalk(-2)
#2 /home/wikipedia/common/php-1.18/includes/Skin.php(197): Title->getTalkPage()
#3 /home/wikipedia/common/php-1.18/includes/Skin.php(176): Skin->preloadExistence()
#4 /home/wikipedia/common/php-1.18/skins/Vector.php(31): Skin->initPage(Object(OutputPage))
#5 /home/wikipedia/common/php-1.18/includes/SkinTemplate.php(153): SkinVector->initPage(Object(OutputPage))
#6 /home/wikipedia/common/php-1.18/includes/OutputPage.php(1856): SkinTemplate->outputPage(Object(OutputPage))
#7 /home/wikipedia/common/php-1.18/includes/Wiki.php(380): OutputPage->output()
#8 /home/wikipedia/common/php-1.18/includes/Wiki.php(625): MediaWiki->finalCleanup()
#9 /home/wikipedia/common/php-1.18/includes/Wiki.php(531): MediaWiki->main()
#10 /home/wikipedia/common/php-1.18/index.php(57): MediaWiki->run()
#11 /usr/local/apache/common-local/live-1.5/index.php(3): require('/home/wikipedia...')
#12 {main}

Exception caught inside exception handler: exception 'MWException' with message 'MWNamespace::getTalk does not make any sense for given namespace -2' in /home/wikipedia/common/php-1.18/includes/Namespace.php:40
Stack trace:
#0 /home/wikipedia/common/php-1.18/includes/Namespace.php(84): MWNamespace::isMethodValidFor(-2, 'MWNamespace::ge...')
#1 /home/wikipedia/common/php-1.18/includes/Title.php(2844): MWNamespace::getTalk(-2)
#2 /home/wikipedia/common/php-1.18/includes/Skin.php(197): Title->getTalkPage()
#3 /home/wikipedia/common/php-1.18/includes/Skin.php(176): Skin->preloadExistence()
#4 /home/wikipedia/common/php-1.18/skins/Vector.php(31): Skin->initPage(Object(OutputPage))
#5 /home/wikipedia/common/php-1.18/includes/SkinTemplate.php(153): SkinVector->initPage(Object(OutputPage))
#6 /home/wikipedia/common/php-1.18/includes/OutputPage.php(1856): SkinTemplate->outputPage(Object(OutputPage))
#7 /home/wikipedia/common/php-1.18/includes/Exception.php(183): OutputPage->output()
#8 /home/wikipedia/common/php-1.18/includes/Exception.php(209): MWException->reportHTML()
#9 /home/wikipedia/common/php-1.18/includes/Exception.php(392): MWException->report()
#10 /home/wikipedia/common/php-1.18/includes/Exception.php(471): MWExceptionHandler::report(Object(MWException))
#11 /home/wikipedia/common/php-1.18/includes/Wiki.php(534): MWExceptionHandler::handle(Object(MWException))
#12 /home/wikipedia/common/php-1.18/index.php(57): MediaWiki->run()
#13 /usr/local/apache/common-local/live-1.5/index.php(3): require('/home/wikipedia...')
#14 {main}
Comment 1 Mark A. Hershberger 2011-10-31 16:30:48 UTC
See also Bug 32030 for more media ns weirdness
Comment 2 Aaron Schulz 2011-11-02 18:47:17 UTC
Fixed in r101656.
Comment 3 Aaron Schulz 2011-11-02 18:47:55 UTC
(In reply to comment #2)
> Fixed in r101656.

Opps, wrong bug.
Comment 4 Aaron Schulz 2011-11-02 20:05:26 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Fixed in r101656.
> 
> Opps, wrong bug.

However, the exception on Media: pages when watching was fixed there.
Comment 5 db [inactive,noenotif] 2012-04-20 20:29:44 UTC
Pages in Media-namespace are redirect to file, action=watch of special page is ignored, but that is not a big problem.

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


Navigation
Links