As a security precaution, we have turned on the setting "Require API key authentication for API requests" for everyone. If this has broken something, please contact
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
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
: :Paolo Amadini
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:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

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

Description User image 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, or browse to and click the link Supported Platforms for Alfresco Enterprise 3.x.

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

The other PDFs on work fine.

I noticed that the server does not appear to be sending a Content-Length header for the problematic file.
Comment 1 User image Boris Zbarsky [:bz] (still a bit busy) 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 User image Kailas 2011-08-31 20:08:58 PDT
Created attachment 557398 [details] [diff] [review]
Patch on a changeset:75619:482742e6fff7

Comment 3 User image 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 User image :Ehsan Akhgari 2011-09-06 12:33:46 PDT
I landed this with the suggested comment fix.  Thanks a lot for your patch, Kailas!  :-)

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