Page MenuHomePhabricator

test behavior of double-redirects for entity redirects
Closed, ResolvedPublic

Description

The automatic resolution of double-redirects relies on title-based redirects; but at present, knowing the target title is not sufficient for creating an EntityContent representing a redirect, which also needs the entity ID to be redirected.


Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=2 s=2014-07-29

Details

Reference
bz66662

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:14 AM
bzimport set Reference to bz66662.
bzimport added a subscriber: Unknown Object (MLST).

EntityHandle::makeRedirectContent() always fails, since an EntityRedirect needs to know it's own ID. Because of this, the generic method of creating redirects, as used by MediaWiki core, will fail.

Some manual testing revealed to following:

  • EntityView can not display entities that *reference* double-redirects (critical, filed as bug 68852)
  • maintenance/fixDoubleRedirects.php will skip and report double-redirects of entities.
  • Creating a chain of redirects using wbcreateredirect works as expected.
  • Automatic creation of redirects on page moves is not an issue, since entity pages cannot be moved.

investigation complete, remaining task is bug 68852.