https://bugzilla.wikimedia.org/show_bug.cgi?id=29154
Web browser: ---
Bug #: 29154
Summary: Upload by URL doesn't handle HTTP redirects
Product: MediaWiki
Version: 1.19-svn
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Uploading
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
While testing bug 29147, I noticed that the upload-by-URL handling doesn't seem
to handle HTTP 302 redirects, at least for large files.
A direct link to this Fedora ISO download chugs through for a while before
predictably timing out:
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"
But if I copy this redirect link from Fedora's download page, it immediately
gives an 'empty file' error:
http://download.fedoraproject.org/pub/fedora/linux/releases/15/Fedora/x86_64/iso/Fedora-15-x86_64-DVD.iso
"The file you uploaded seems to be empty. This might be due to a typo in the
file name. Please check whether you really want to upload this file."
Inspecting the MWHttpRequest result shows that it's found the 302 redirect, but
doesn't seem to have followed it.
Link found from http://fedoraproject.org/en/get-fedora-all
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l