Download size exceeds actual size of the file

RESOLVED INVALID

Status

()

Firefox
Untriaged
RESOLVED INVALID
4 years ago
4 years ago

People

(Reporter: nirav.radia, Unassigned)

Tracking

31 Branch
x86_64
Windows 8.1
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Created attachment 8521295 [details]
ScreenShot.jpg contains the file which I was downloading.

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Build ID: 20140716183446

Steps to reproduce:

Download a zip file from http://dock.javaforge.com/dockingFrames_v1.1.0/df_1.1.0.zip


Actual results:

The downloaded size of the zip file exceeds its actual size.


Expected results:

Both size should have been in sync.
This are the http headers reported by the site:

>Status: HTTP/1.1 200 OK
>Date:	Wed, 12 Nov 2014 10:20:51 GMT	
>Server:	Apache/2.2.22 (Ubuntu)	
>Set-Cookie:	JSESSIONID=A76E793BC509707A15E2F56315E58130; Path=/; HttpOnly	
>Content-Disposition:	attachment; filename="df_1.1.0.zip"	
>Accept-Ranges:	none	
>Content-Encoding:	gzip	
>Content-Length:	25317271	
>Connection:	close	
>Content-Type:	application/zip;charset=UTF-8

Content-Length:	25317271 means that the file has a size of 25317271 bytes and that are (/1024) 24723,8974609375KB or (/1024 again) 24,14443111419678 MB and if you round that you get 24,1MB

That is the exact value that Firefox shows as "to be downloaded" size. 
The server seems to use a wrong value in his Content-Length header and that is a server bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.