Page MenuHomePhabricator

ForeignDBRepo broken?
Closed, ResolvedPublic

Description

As well as connecting to WikimediaCommons by ForeignAPIRepo (working ok) we also connect to a local shared image repository using ForeignDBRepo. While working in a previous version (r69050), the ForeignDBRepo in the current 1.18alpha (r79256) fails with the message (when connecting to a repo with db name openmedia):

„1146: Table 'openmedia.16page' doesn't exist (localhost:PORT)“.

Maintenance/update.php worked ok. I cannot find information about a mediawiki table named 16. Any clues?

With $wgShowSQLErrors = true; the following is shown:

SELECT page_id FROM 16page WHERE page_namespace = '6' AND page_title = 'zzzzzzz.jpg' LIMIT 1

Function „LocalRepo::getArticleID“.


Version: 1.17.x
Severity: critical

Details

Reference
bz26552

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:24 PM
bzimport set Reference to bz26552.

Further testing of svn revs revealed that the error is yet absent in r75380 but present in r75400

Sorry, correction to the above: r75300 is ok, but already r75350 is broken (claimed 75380 still wrongly claimed ok in previous comment).

Bryan.TongMinh wrote:

Could you check if r75340 is ok?

Bryan.TongMinh wrote:

Found it, r75343.

Right, simplest possible "fix" for this is r79591

It will fix the errors you're getting, but I'm leaving this bug open while I hunt around for other instances of this...

I confirm that our problems are solved with r79596!

Gilles raised the priority of this task from High to Unbreak Now!.Dec 4 2014, 10:21 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to High.Dec 4 2014, 11:23 AM