Page MenuHomePhabricator

Shared Image doesn't work if $wgCapitalLinks is false
Closed, ResolvedPublic

Description

Author: rcalpha

Description:
Hi!..

I was having a lot of trouble to setup two wiki project using a shared image
folder. After testing, and thanks to the debug output, I noticed there are two
SQL request for the image, the first one is to the table "en_image", and the
seconds is to "image". It seems that $wgUseSharedUploads is working ok, but
there is a very interesting diferente. The filename in the second query had the
first letter capitalized. I was using $wgCapitalLinks=false.

I think that the module that query for the image (I don't know which one), is
not checking the $wgCapitalLinks in order to rewrite the query.

The workaround that I found, is to leave $wgCapitalLinks as default (true), and
upload the file again.

My setup is:

Both wiki is using database name, the first wiki (The main one) has no table
prefix, and the second one has "en_" prefix.

By the way, I think that I should be useful, that the upload have the option
make the destination to the shared upload folder.


Version: 1.5.x
Severity: normal
OS: Windows XP
Platform: PC

Details

Reference
bz5174

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 9:08 PM
bzimport set Reference to bz5174.
bzimport added a subscriber: Unknown Object (MLST).

Addressed with the initialCapital setting for foreign repos. Marked as fixed.

Gilles raised the priority of this task from High to Unbreak Now!.Dec 4 2014, 10:19 AM
Gilles added a project: Multimedia.
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:22 AM