https://bugzilla.wikimedia.org/show_bug.cgi?id=18115

           Summary: ForeignAPIRepo cache isn't working
           Product: MediaWiki
           Version: 1.15-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: File/Repo
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Hi,

Three issues:

# It isn't saving files to disk (in $IP/images/thumb).. I think that's because
$fileName (ltrim( substr( $foreignUrl, strrpos( $foreignUrl, '/' ) ), '/' );)
is never echoed in the other variables (but if I add wfDebug( __METHOD__ . "
$fileName \n" ), it is shown in the debug file);) (in if ( !is_writable( ...
and $localUrl ... and file_put_contents($wgUploadDi ...). I have no idea why.
example*.

# hashLevels is set to zero by default (I think), so $this->getHashPath( $name
) (line 161) isn't giving anything. I had to add 
'hashLevels' => 2, so that it gets set (shouldn't it detect that or I am wrong
at that assumption).

# It isn't working in Windows because of the different slashes style. 

Http::request: GET
http://commons.wikimedia.org/w/api.php?titles=Image%3AGnome-face-sad.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&prop=imageinfo&format=json&action=query
FileCache MISS for Gnome-face-sad.svg
Http::request: GET
http://commons.wikimedia.org/w/api.php?titles=Image%3AGnome-face-sad.svg&iiprop=url&iiurlwidth=48&iiurlheight=-1&prop=imageinfo&format=json&action=query
ForeignAPIRepo::getThumbUrl got remote thumb
http://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Gnome-face-sad.svg/48px-Gnome-face-sad.svg.png
ForeignAPIRepo::getThumbUrlFromCache could not write to thumb path


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to