Last modified: 2012-04-12 13:55:11 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 T31147, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29147 - Receive "undefined variable" error in Apache error log when uploading a 2G file via http url
Receive "undefined variable" error in Apache error log when uploading a 2G fi...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.16.x
Other Solaris
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-26 02:13 UTC by Chris Hanrahan
Modified: 2012-04-12 13:55 UTC (History)
2 users (show)

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


Attachments

Description Chris Hanrahan 2011-05-26 02:13:59 UTC
When attempting to upload a 2G file via the Special:Upload page, the upload hangs, and I see the following in my Apache error_log:

Wed May 25 20:48:28 2011] [error] [client 10.10.20.227] PHP Notice:  Undefined variable: errornum in /opt/cfgadmin/wiki/includes/upload/UploadFromUrl.php on line 116, referer: https://cfgmgtwiki.tanagerinc.com/index.php/Special:Upload

No message appears in the browser, the browser stops trying to access the file to be uploaded from the URL provided after 10 seconds.

Uploading of smaller files using this page works fine, this problem only occurred on a 2G file that I attempted to upload

This problem does not occur when attempting to upload a file via the browser from my local hard drive.

I hacked the code to return the curl error number, which is 28.  This error only occurs when attempting to pull a 2G file from a http:// URL.
Comment 1 Chad H. 2011-05-26 02:17:22 UTC
Seems as though this has been fixed in 1.17 and trunk.
Comment 2 Brion Vibber 2011-05-26 18:22:26 UTC
This was fixed in r65043 on trunk by refactoring away from the CURL-specific code that had the error.

Trying to fetch a large Fedora DVD iso downloads for a bit, then gives an expected timeout:

http://fedora.mirror.lstn.net/releases/15/Fedora/x86_64/iso/Fedora-15-x86_64-DVD.iso

"Error fetching URL: Operation timed out after 25000 milliseconds with 62264250 out of 3596310528 bytes received "

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


Navigation
Links