Closed Bug 264389 Opened 20 years ago Closed 20 years ago

Saving Adobe Acrobat PDF files to disk using Save As prepends HTTP headers to files so the files can not be later opened with Adobe reader

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 214406

People

(Reporter: bobrck, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803

This is an example of the beginning of the PDF file once saved:

1000
HTTP/1.1 200 OK
Date: Wed, 13 Oct 2004 21:51:09 GMT
Server: Apache/2.0.46 (Red Hat)
Last-Modified: Fri, 15 Nov 2002 23:40:02 GMT
ETag: "94c037-99d1c-592f9880"
Accept-Ranges: bytes
Content-Length: 630044
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: application/pdf

%PDF-1.3
%âăĎÓ
101 0 obj
<< 
/Linearized 1 
/O 103 
/H [ 785 510 ] 
/L 630044 
/E 243375 
/N 12 
/T 627905 
>> 
endobj
                                                     xref
101 17 
0000000016 00000 n
0000000690 00000 n
0000001295 00000 n
0000001455 00000 n
0000001665 00000 n
0000001717 00000 n
0000001758 00000 n
0000002110 00000 n
0000002608 00000 n
0000002834 00000 n
0000003819 00000 n
0000027429 00000 n
0000030107 00000 n
0000030533 00000 n
0000030612 00000 n
0000000785 00000 n
0000001273 00000 n
trailer
<<
/Size 118
/Info 99 0 R 
/Root 102 0 R 
/Prev 627894 
/ID[<5b512e88a15723efd544b9599c031cb8><aae26d88debe0acc2421632b426d91c9>]
>>
startxref
0
%%EOF
    
102 0 obj
<< 
/Type /Catalog 
/Pages 97 0 R 
/Metadata 







Reproducible: Always
Steps to Reproduce:
1. Go to a site with links to PDF files
2. Choose save as on one of the links.
3. Try to open with Adobe Acrobat. It says file corrupt.
4. Enjoy and relax; possibly megabytes of data have been wasted as well as time.
5. I love open source but this...


Expected Results:  
Saved the original file and not prepend any header to it.
are you _sure_ this happens for _all_ PDF files? what's an example url?

I suspect this is due to a server with a broken implementation of HEAD. that
said, if it is, this is fixed in current nightly builds.
similiar bug is Bug 214406

*** This bug has been marked as a duplicate of 214406 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.