https://bugzilla.wikimedia.org/show_bug.cgi?id=36428

--- Comment #3 from [email protected] 2012-05-13 17:32:50 UTC ---
Deleted items, then tried an undelete, and then got a failed assertion,
possibly because the undeleted content isn't any longer a supported format?
Could be a new bug and not related to secondary storage, even if it is
triggered by it.

Warning: assert():
Assertion failed in /home/john/Workspace/core/includes/Revision.php on line 908
Call Stack: 0.0000 636320
1. {main}() /home/john/Workspace/core/index.php:0 0.0072 3098752
2. MediaWiki->run() /home/john/Workspace/core/index.php:58 0.0072 3098752
3. MediaWiki->main() /home/john/Workspace/core/includes/Wiki.php:502 0.0127
4111328
4. MediaWiki->performRequest() /home/john/Workspace/core/includes/Wiki.php:592
0.0130 4112040
5. MediaWiki->initializeArticle()
/home/john/Workspace/core/includes/Wiki.php:267 0.0133 4148616
6. Article->isRedirect() /home/john/Workspace/core/includes/Wiki.php:364 0.0133
4149008
7. Article->__call() /home/john/Workspace/core/includes/Article.php:0 0.0133
4149640
8. call_user_func_array() /home/john/Workspace/core/includes/Article.php:1868
0.0133 4150008
9. WikiPage->isRedirect() /home/john/Workspace/core/includes/Article.php:0
0.0133 4150088
10. WikiPage->getContent() /home/john/Workspace/core/includes/WikiPage.php:374
0.0148 4161712
11. Revision->getContent() /home/john/Workspace/core/includes/WikiPage.php:493
0.0148 4161792
12. Revision->getContentInternal()
/home/john/Workspace/core/includes/Revision.php:839 0.0148 4161792
13. Revision->getContentHandler()
/home/john/Workspace/core/includes/Revision.php:867 0.0148 4161952
14. assert() /home/john/Workspace/core/includes/Revision.php:908

Format application/x-wikitext is not supported for content model wikitext

Backtrace:

#0 /home/john/Workspace/core/includes/ContentHandler.php(788):
ContentHandler->checkFormat('application/x-w...')
#1 /home/john/Workspace/core/includes/Revision.php(876):
WikitextContentHandler->unserializeContent(''''LOKE'''??Con...',
'application/x-w...')
#2 /home/john/Workspace/core/includes/Revision.php(839):
Revision->getContentInternal()
#3 /home/john/Workspace/core/includes/WikiPage.php(493):
Revision->getContent(1)
#4 /home/john/Workspace/core/includes/WikiPage.php(374): WikiPage->getContent()
#5 [internal function]: WikiPage->isRedirect()
#6 /home/john/Workspace/core/includes/Article.php(1868):
call_user_func_array(Array, Array)
#7 /home/john/Workspace/core/includes/Wiki.php(364):
Article->__call('isRedirect', Array)
#8 /home/john/Workspace/core/includes/Wiki.php(364): Article->isRedirect()
#9 /home/john/Workspace/core/includes/Wiki.php(267):
MediaWiki->initializeArticle()
#10 /home/john/Workspace/core/includes/Wiki.php(592):
MediaWiki->performRequest()
#11 /home/john/Workspace/core/includes/Wiki.php(502): MediaWiki->main()
#12 /home/john/Workspace/core/index.php(58): MediaWiki->run()
#13 {main}

Line 908 is the assertion in the following code (From Revision.php)

/**
 * @return ContentHandler
 */
public function getContentHandler() {
    if ( !$this->mContentHandler ) {
        $model = $this->getContentModelName();
        $this->mContentHandler = ContentHandler::getForModelName( model );
        assert( $this->mContentHandler->isSupportedFormat(
$this->getContentFormat() ) );
    }
    return $this->mContentHandler;
}

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to