Last modified: 2014-02-12 23:32:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53265, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51265 - extra purge needed / memcached and an uploaded file greater than $wgUploadSizeWarning
extra purge needed / memcached and an uploaded file greater than $wgUploadSiz...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.20.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-12 21:57 UTC by [[kgh]]
Modified: 2014-02-12 23:32 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description [[kgh]] 2013-07-12 21:57:20 UTC
I use the following configuration:

$wgMainCacheType = CACHE_MEMCACHED;
$wgMemCachedServers = array( "127.0.0.1:11211" );
$wgMaxUploadSize = 1024 * 1024 * 2;
$wgUploadSizeWarning = 1024 * 320;

If a file with a size below the value $wgUploadSizeWarning gets uploaded, everything is ok. The information displayed below the uploaded file is something like e.g. "‎(180 × 180 pixels, file size: 207 KB, MIME type: image/jpeg)" as expected.

If a file with a size above the value $wgUploadSizeWarning gets uploaded, the story is different.

First of all the warning message is: "It is recommended that files are no larger than 327680; this file is $2." The wiki does not pick up the actual value of the file. After the upload was done the following consequently gets displayed below the file: "(500 × 500 pixels, file size: 0 KB, MIME type: image/jpeg)"

To get the expected display you need to do an "&action=purge". After that I get the "(500 × 500 pixels, file size: 524 KB, MIME type: image/jpeg)"

I am using MW 1.20.6 with PHP 5.3.3 and MySQL 5.1.66
Comment 1 [[kgh]] 2013-12-03 13:23:59 UTC
Well, nobody responded to this one. However, it turns out to be fixed after the upgrade from MW 1.20.8 to MW 1.21.3, so presumably this was fixed for the MW 1.21 branch and above. Thus closing as RESOLVED FIXED.

Thanks to the unknown programmer who did the fix!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links