Page MenuHomePhabricator

garbage padded values returned from api.php for interwikimaps
Closed, ResolvedPublic

Description

Author: ralf_wikimedia

Description:
http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap returns:

<iw prefix="aa������������������������������" local="" url="http://aa.wikipedia.org/wiki/$1������������������������������������������������������������������������������������������������" />
<iw prefix="ab������������������������������" local="" url="http://ab.wikipedia.org/wiki/$1������������������������������������������������������������������������������������������������" />
<iw prefix="abbenormal����������������������" url="http://ourpla.net/cgi/pikie?$1�������������������������������������������������������������������������������������������������" />

Version: unspecified
Severity: normal

Details

Reference
bz21818

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:51 PM
bzimport set Reference to bz21818.

enwiki.interwiki table has iw_prefix and iw_url as binary columns; behavior change from 4.0 to 5.1 server will be causing the extra null padding.

They should be changed to varbinary(32) and blob respectively to match current schema settings; recommend double-checking other tables and other databases to see if any other tables were similarly affected.

Changed Keywords: (N/A) → shell, schema-change

Shouldn't this component probably be reassigned to site requests or something?

Bryan.TongMinh wrote:

*** Bug 22242 has been marked as a duplicate of this bug. ***

bburette wrote:

Looks like this one has been fixed?