https://bugzilla.wikimedia.org/show_bug.cgi?id=18120
Summary: Editing not possible when Special:OldReviewedPages
included with empty list
Product: MediaWiki
Version: 1.15-svn
Platform: All
URL: http://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_Vorla
gen/Arbeitsliste
OS/Version: All
Status: NEW
Severity: critical
Priority: Normal
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Editing a page with the template {{Special:OldReviewedPages}} via api only
works if the included template returns a non empty list. Editing with index.php
is always possible. (all tests done with user having editor-right).
Response from ?action=edit&text=abc&... on editing a page where the
special-template returns that there are no old reviewed pages at the moment:
<?xml version="1.0"?><api><error code="internal_api_error_MWException"
info="Exception Caught: Empty $wgTitle in OutputPage::parse">
#0 /usr/local/apache/common-local/php-1.5/includes/GlobalFunctions.php(736):
OutputPage->parse('Gegenwärtig gi...', true, true)
#1
/usr/local/apache/common-local/php-1.5/extensions/FlaggedRevs/specialpages/OldReviewedPages_body.php(86):
wfMsgExt('oldreviewedpage...', Array)
#2
/usr/local/apache/common-local/php-1.5/extensions/FlaggedRevs/specialpages/OldReviewedPages_body.php(29):
OldReviewedPages->showList('10,namespace=Vo...')
#3 /usr/local/apache/common-local/php-1.5/includes/SpecialPage.php(540):
OldReviewedPages->execute('10,namespace=Vo...')
#4 /usr/local/apache/common-local/php-1.5/includes/SpecialPage.php(559):
SpecialPage::executePath(Object(Title), true)
#5 /usr/local/apache/common-local/php-1.5/includes/parser/Parser.php(2867):
SpecialPage::capturePath(Object(Title))
#6
/usr/local/apache/common-local/php-1.5/includes/parser/Preprocessor_DOM.php(959):
Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#7 /usr/local/apache/common-local/php-1.5/includes/parser/Parser.php(2623):
PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#8 /usr/local/apache/common-local/php-1.5/includes/parser/Parser.php(875):
Parser->replaceVariables('<noinclude>?{{B...')
#9 /usr/local/apache/common-local/php-1.5/includes/parser/Parser.php(327):
Parser->internalParse('<noinclude>?{{B...')
#10 /usr/local/apache/common-local/php-1.5/includes/Article.php(2854):
Parser->parse('<noinclude>?{{B...', Object(Title),
Object(ParserOptions), true, true, NULL)
#11
/usr/local/apache/common-local/php-1.5/extensions/SpamBlacklist/SpamBlacklist_body.php(218):
Article->prepareTextForEdit('<noinclude>?{{B...')
#12
/usr/local/apache/common-local/php-1.5/extensions/SpamBlacklist/SpamBlacklist.php(106):
SpamBlacklist->filter(Object(Title), '<noinclude>?{{B...', '', '',
Object(EditPage))
#13 [internal function]:
wfSpamBlacklistFilterAPIEditBeforeSave(Object(EditPage),
'<noinclude>?{{B...', Array)
#14 /usr/local/apache/common-local/php-1.5/includes/Hooks.php(117):
call_user_func_array('wfSpamBlacklist...', Array)
#15 /usr/local/apache/common-local/php-1.5/includes/api/ApiEditPage.php(180):
wfRunHooks('APIEditBeforeSa...', Array)
#16 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(431):
ApiEditPage->execute()
#17 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(261):
ApiMain->executeAction()
#18 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(245):
ApiMain->executeActionWithErrorHandling()
#19 /usr/local/apache/common-local/php-1.5/api.php(77): ApiMain->execute()
#20 /usr/local/apache/common-local/live-1.5/api.php(3):
require('/usr/local/apac...')
#21 {main}
</error></api>
--
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