Page MenuHomePhabricator

LogicException: EditIndexPage is only able to display a form for IndexContent
Closed, DuplicatePublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   LogicException: EditIndexPage is only able to display a form for IndexContent
exception.trace
from /srv/mediawiki/php-1.41.0-wmf.28/extensions/ProofreadPage/includes/Index/EditIndexPage.php(54)
#0 /srv/mediawiki/php-1.41.0-wmf.28/includes/editpage/EditPage.php(3153): ProofreadPage\Index\EditIndexPage->showContentForm()
#1 /srv/mediawiki/php-1.41.0-wmf.28/includes/editpage/EditPage.php(773): MediaWiki\EditPage\EditPage->showEditForm()
#2 /srv/mediawiki/php-1.41.0-wmf.28/extensions/ProofreadPage/includes/Index/IndexEditAction.php(20): MediaWiki\EditPage\EditPage->edit()
#3 /srv/mediawiki/php-1.41.0-wmf.28/includes/MediaWiki.php(584): ProofreadPage\Index\IndexEditAction->show()
#4 /srv/mediawiki/php-1.41.0-wmf.28/includes/MediaWiki.php(363): MediaWiki->performAction(Article, MediaWiki\Title\Title)
#5 /srv/mediawiki/php-1.41.0-wmf.28/includes/MediaWiki.php(961): MediaWiki->performRequest()
#6 /srv/mediawiki/php-1.41.0-wmf.28/includes/MediaWiki.php(614): MediaWiki->main()
#7 /srv/mediawiki/php-1.41.0-wmf.28/index.php(50): MediaWiki->run()
#8 /srv/mediawiki/php-1.41.0-wmf.28/index.php(46): wfIndexMain()
#9 /srv/mediawiki/w/index.php(3): require(string)
#10 {main}
Impact
Notes

Reproducible with GET request through undo params

IndexContent does not handle redirection well.

Details

Request URL
https://pa.wikisource.org/w/index.php?action=edit&title=*&undo=*&undoafter=*

Event Timeline

Ammarpad added a project: ProofreadPage.

Minimal repro steps:

@Ammarpad, Any idea how often this crops up ?

Very few. But it's bad that it can triggered effortlessly.