Page MenuHomePhabricator

Redirects in the Index namespace are not editable
Closed, ResolvedPublic

Description

Attempt to edit a redirect in the Index namespace generates an error, eg:

https://pl.wikisource.org/w/index.php?title=Indeks:Nr1234&action=edit

gives:

Błąd wewnętrzny
[W8EGQQpAICsAAKvdNn4AAAAE] 2018-10-12 20:38:25: Krytyczny wyjątek typu "MWException"

This means eg. that a user can't fix a double redirect manually.

2018-10-12 20:38:25 [W8EGQQpAICsAAKvdNn4AAAAE] mw1322 plwikisource 1.32.0-wmf.24 exception ERROR: [W8EGQQpAICsAAKvdNn4AAAAE] /w/index.php?title=Indeks:Nr1234&action=edit   MWException from line 60 of /srv/mediawiki/php-1.32.0-wmf.24/extensions/ProofreadPage/includes/Index/EditIndexPage.php: EditIndexPage is only able to display a form for IndexContent {"exception_id":"W8EGQQpAICsAAKvdNn4AAAAE","exception_url":"/w/index.php?title=Indeks:Nr1234&action=edit","caught_by":"mwe_handler"} 
[Exception MWException] (/srv/mediawiki/php-1.32.0-wmf.24/extensions/ProofreadPage/includes/Index/EditIndexPage.php:60) EditIndexPage is only able to display a form for IndexContent
  #0 /srv/mediawiki/php-1.32.0-wmf.24/includes/EditPage.php(2957): ProofreadPage\Index\EditIndexPage->showContentForm()
  #1 /srv/mediawiki/php-1.32.0-wmf.24/includes/EditPage.php(702): EditPage->showEditForm()
  #2 /srv/mediawiki/php-1.32.0-wmf.24/extensions/ProofreadPage/includes/Index/IndexEditAction.php(20): EditPage->edit()
  #3 /srv/mediawiki/php-1.32.0-wmf.24/includes/MediaWiki.php(501): ProofreadPage\Index\IndexEditAction->show()
  #4 /srv/mediawiki/php-1.32.0-wmf.24/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
  #5 /srv/mediawiki/php-1.32.0-wmf.24/includes/MediaWiki.php(868): MediaWiki->performRequest()
  #6 /srv/mediawiki/php-1.32.0-wmf.24/includes/MediaWiki.php(525): MediaWiki->main()
  #7 /srv/mediawiki/php-1.32.0-wmf.24/index.php(42): MediaWiki->run()
  #8 /srv/mediawiki/w/index.php(3): include(string)
  #9 {main}

Event Timeline

Ankry created this task.Oct 12 2018, 8:50 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 12 2018, 8:50 PM
Reedy added a project: ProofreadPage.
Reedy updated the task description. (Show Details)
Reedy added a subscriber: Reedy.Oct 12 2018, 8:54 PM

I just changed the content model on the page back to wikitext

https://pl.wikisource.org/w/index.php?title=Indeks:Nr1234&action=history

Ankry added a comment.EditedOct 12 2018, 8:59 PM

Maybe the content model should be set to wikitext automaticaly when such a redirect is created (page moved)?

Page move is an operation available to (almost) any user while changing content model is admin-only.

Reedy added a comment.Oct 12 2018, 9:05 PM

Was it an automatically created redirect when moving a page?

Ankry added a comment.Oct 12 2018, 9:05 PM
This comment was removed by Ankry.
Ankry added a comment.Oct 12 2018, 9:06 PM

Was it an automatically created redirect when moving a page?

Yes

Reedy closed this task as Resolved.Oct 12 2018, 9:06 PM
Reedy claimed this task.

Ok, let's close this task as actually resolved, and file a task for getting the underlying issue resolved