Last Comment Bug 683258 - Size reported as -1 bytes when attempting download with no Content-Length header
: Size reported as -1 bytes when attempting download with no Content-Length header
Status: RESOLVED FIXED
:
Product: Firefox
Classification: Client Software
Component: File Handling (show other bugs)
: 8 Branch
: x86_64 Windows 7
: -- normal with 1 vote (vote)
: Firefox 9
Assigned To: Kailas
:
Mentors:
http://www.alfresco.com/services/subs...
Depends on:
Blocks: 595888
  Show dependency treegraph
 
Reported: 2011-08-30 12:27 PDT by Bobby Johnson [:rjohnson19]
Modified: 2011-11-14 06:04 PST (History)
8 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Patch on a changeset:75619:482742e6fff7 (1023 bytes, patch)
2011-08-31 20:08 PDT, Kailas
dolske: review+
Details | Diff | Review

Description Bobby Johnson [:rjohnson19] 2011-08-30 12:27:50 PDT
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0a2) Gecko/20110830 Firefox/8.0a2

With any PDF plugins disabled, attempt to download the PDF http://www.alfresco.com/services/subscription/supported-platforms/3-x.pdf, or browse to http://www.alfresco.com/services/subscription/supported-platforms/ and click the link Supported Platforms for Alfresco Enterprise 3.x.

The download dialog displays:
PDF Document (-1 bytes)

The other PDFs on http://www.alfresco.com/services/subscription/supported-platforms/ work fine.

I noticed that the server does not appear to be sending a Content-Length header for the problematic file.
Comment 1 Boris Zbarsky [:bz] (Out June 25-July 6) 2011-08-30 13:13:13 PDT
Why is this a core bug?  Core is correctly reporting a content-length of -1 (which means unknown).  Sounds to me like the UI is what's broken.
Comment 2 Kailas 2011-08-31 20:08:58 PDT
Created attachment 557398 [details] [diff] [review]
Patch on a changeset:75619:482742e6fff7

Patch
Comment 3 Justin Dolske [:Dolske] 2011-09-05 17:35:38 PDT
Comment on attachment 557398 [details] [diff] [review]
Patch on a changeset:75619:482742e6fff7

Probably worth a tiny comment here to note that .contentLength == -1 when the length is unknown.
Comment 4 :Ehsan Akhgari (busy, don't ask for review please) 2011-09-06 12:33:46 PDT
I landed this with the suggested comment fix.  Thanks a lot for your patch, Kailas!  :-)

http://hg.mozilla.org/integration/mozilla-inbound/rev/5ab4ecc3ff2c
Comment 5 :Ehsan Akhgari (busy, don't ask for review please) 2011-09-07 07:55:49 PDT
http://hg.mozilla.org/mozilla-central/rev/5ab4ecc3ff2c

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