Open Bug 784066 Opened 12 years ago Updated 2 years ago

Download Manager says it downloaded a file with the (large) anticipated size, when in fact it got a 0-byte file

Categories

(Toolkit :: Downloads API, defect)

x86_64
Linux
defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

()

Details

Attachments

(2 files)

STR:
 1. Download this file (e.g. by clicking this link and picking a save location):
     http://nightly.webkit.org/files/WebKit-SVN-source.tar.bz2

   ---> At the moment, the download will fail, and will just
        produce a 0-byte saved file on your filesystem. BUT:

 2. Inspect the download notification that Firefox pops up.

EXPECTED RESULTS: Firefox reports that the download fails, and/or reports that the saved file was 0 bytes.

ACTUAL RESULTS: Firefox tells me that it (instantly) downloaded a file of size "1.8 GB"


(NOTE: I haven't been able to download the Webkit tarball with any browser / download manager for the last couple days, so I suspect their server is temporarily misconfigured or something. Whenever they fix it, this bug probably won't be reproducible at that URL anymore.)
Attached video screencast
Attached file curl output
Here's the stderr log from attempting to download the file with "curl -vvv", in case it helps.
Note that curl ends by reporting...
>  curl: (18) transfer closed with 1916464829 bytes remaining to read
...which correctly tells me:  "Uh oh, I expected 1.8 GB more data than I received"

(contrast that to Firefox's download manager UI, which implies that it received all 1.8 GB of data)
Summary: With certain download failures, download manager reports huge file size instead of (correct) 0 bytes → Download Manager says it downloaded a file with the (large) anticipated size, when in fact it got a 0-byte file
Version: unspecified → Trunk
Version info: I'm running up-to-date Nightly on Ubuntu 12.10 "quantal" prerelease.
about:support:      Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0
about:buildconfig:  Built from http://hg.mozilla.org/mozilla-central/rev/c676b554c7bb
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: