Page MenuHomePhabricator

api invalid title passed to langlinks causes internal error
Closed, ResolvedPublic

Description

Author: cbm.wikipedia

Description:
If a single invalid title is passed to a langlinks query, an internal error can result.

http://en.wikipedia.org/w/api.php?action=query&prop=langlinks&titles=Manqdsvina


Version: unspecified
Severity: enhancement

Details

Reference
bz13442

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:06 PM
bzimport set Reference to bz13442.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 4733
ApiQueryLangLinks.php patch

Patch for ApiQueryLangLinks.php using code stolen from ApiQueryCategories

Attached:

Bryan.TongMinh wrote:

Fixed in r32236. This should probably also backported in older releases, but I'll leave that to brion.