Closed Bug 159833 Opened 23 years ago Closed 20 years ago

Progress dialog shows things incorrectly if a a file is sent via content-disposition: attachment

Categories

(SeaMonkey :: Download & File Handling, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

Attachments

(1 file)

When downloading files that are send using "content-disposition: attachment;"
the progress dialog title shows "-1% complete from file.ext" and the status
field is empty.

The title should be something like "receiveing file.ext" and Status fielt should
show now many KB/MB have beed downloaded so far.

Using Mozilla 2002072708 on WinXP.
Do you mean an Attchment in Mailnews ?
No, I mean Content-disposition field of a HTTP header.
This is a common way to start downloads through scripts, i.e.
lets say there's a URL www.host.com/download.cgi?aaaaaa.bbb

download.cgi writes this HTTP header:

Content-Type: somemimetype/ext Content-Disposition: attachment; filename=aaaaaa.bbb

and then sends the contents on the file aaaaaa.bbb.
See related bug 65827.  This is NOT a duplicate of that bug, but any fixes might
be related.  However, this worksforme on win2k at the following url:
http://www.bewley.net/cgi-bin/download.pl

component->Download manager
Assignee: Matti → blaker
Component: Browser-General → Download Manager
QA Contact: asa → sairuh
Please provide a URL this happens at.  I have been unable to reproduce it my tests.
http://www.stud.uni-karlsruhe.de/~uli2/cgi/mozget.cgi

this is a 8 MB test file.
I just tested it with the newest build:

In the download manager the entry is shown correctly: in the "transferred"
column there is "1201 KB of ??? at 79 KB/s".

In the progress dialog no progress other than the elapsed time is shown.
QA Contact: sairuh → petersen
"Status:" in the download properties dialog does indeed remain blank rather than
showing the downloaded size on reporter's test link (where mozilla doesn't know
the length of the content).

confirming with 2002120908/trunk/win2k
Status: UNCONFIRMED → NEW
Ever confirmed: true
screenshot showing download properties dialog with blank Status:, and download
manager window showing KB downloaded so far
This is a duplicate of the bug on downloads with no Content-Length being screwy....
*** Bug 180714 has been marked as a duplicate of this bug. ***
bz: do you mean bug 123334?
That, or we may have even older ones...
Depends on: 123334
I think the summary isn't correct, the bug appeares when the Content-length
header is missing, doing content-disposition: attachment works fine with correct
Content-length.

Also, it seems to be fixed in Mozilla 1.4a (Build 2003040105). Here the download
window status shows "xxxx KB of ??? at xx KB/s"
When analyzing the packets sent/received to the server, it seems Internet 
Explorer sends nothing but User Agent, and Host, and receives Content Length 
from the server, but Firefox sends a whole list of accepts and other headers, 
and the content length is no where in the packet returned to Firefox from the 
server.
Marking worksforme, then (unless someone wants to evangelize the site).
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: