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-&gt;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-&gt;showList('10,namespace=Vo...')
#3 /usr/local/apache/common-local/php-1.5/includes/SpecialPage.php(540):
OldReviewedPages-&gt;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-&gt;braceSubstitution(Array, Object(PPFrame_DOM))
#7 /usr/local/apache/common-local/php-1.5/includes/parser/Parser.php(2623):
PPFrame_DOM-&gt;expand(Object(PPNode_DOM), 0)
#8 /usr/local/apache/common-local/php-1.5/includes/parser/Parser.php(875):
Parser-&gt;replaceVariables('&lt;noinclude&gt;?{{B...')
#9 /usr/local/apache/common-local/php-1.5/includes/parser/Parser.php(327):
Parser-&gt;internalParse('&lt;noinclude&gt;?{{B...')
#10 /usr/local/apache/common-local/php-1.5/includes/Article.php(2854):
Parser-&gt;parse('&lt;noinclude&gt;?{{B...', Object(Title),
Object(ParserOptions), true, true, NULL)
#11
/usr/local/apache/common-local/php-1.5/extensions/SpamBlacklist/SpamBlacklist_body.php(218):
Article-&gt;prepareTextForEdit('&lt;noinclude&gt;?{{B...')
#12
/usr/local/apache/common-local/php-1.5/extensions/SpamBlacklist/SpamBlacklist.php(106):
SpamBlacklist-&gt;filter(Object(Title), '&lt;noinclude&gt;?{{B...', '', '',
Object(EditPage))
#13 [internal function]:
wfSpamBlacklistFilterAPIEditBeforeSave(Object(EditPage),
'&lt;noinclude&gt;?{{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-&gt;execute()
#17 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(261):
ApiMain-&gt;executeAction()
#18 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(245):
ApiMain-&gt;executeActionWithErrorHandling()
#19 /usr/local/apache/common-local/php-1.5/api.php(77): ApiMain-&gt;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

Reply via email to