Closed
Bug 644921
Opened 15 years ago
Closed 15 years ago
Files compressed with zip are not decompressed nor saved with zip extension
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: fuzzydolphin, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0
If you try to download the "Plain Text UTF-8" file from Project Gutenburg. It is a zipped text file but shows up on the system as a plain text file. When you try to open it the file show garbage. If you rename it to a zip file then you can decompress it and then read it.
Reproducible: Always
Steps to Reproduce:
1. Go http://www.gutenberg.org/ebooks/1342
2. Download the "Plain Text UTF-8"
3. Try to open in a TextEdit the resulting pg1342.txt file
[FILE SHOWS GARBAGE]
4. Rename filel to pg1342.txt.zip
5. Unzip it
6. Try to open in a TextEdit
[SHOWS CORRECT TEXT]
Actual Results:
File shows garbled characters.
Expected Results:
Should show the text of the book.
Either save as a zipfile or expand it before saving the file.
Comment 1•15 years ago
|
||
The URL is http://www.gutenberg.org/cache/epub/1342/pg1342.txt with this header Content-Type: application/x-gzip; charset=utf-8
Content-Encoding: gzip
Content-Location: pg1342.txt.utf8.gz
Shouldn't we decompress the content-encoding and/or shouldn't the site send the file as text/plain or send a correct filename with content-disposition:attachment header ?
Status: UNCONFIRMED → NEW
Component: General → Networking: HTTP
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → networking.http
Version: unspecified → Trunk
Comment 2•15 years ago
|
||
> 2. Download the "Plain Text UTF-8"
How did you do this, exactly? If I click the link, I just see the text in the browser. Did you load this and then "save as"? Or did you do "save link as" on the preceding page? Or something else?
Comment 3•15 years ago
|
||
And this is certainly not HTTP networking; HTTP networking just hands the data out to the consumer.
Component: Networking: HTTP → File Handling
QA Contact: networking.http → file-handling
Comment 4•15 years ago
|
||
The server sends now different headers and you get text/plain in the browser.
should we mark this wfm ?
Comment 5•15 years ago
|
||
Without good steps to reproduce, probably yes.... There are so many different ways of saving files it's hard to say anything without knowing exactly which one was used.
| Reporter | ||
Comment 6•15 years ago
|
||
Original submitter. Marking as works for me as I cannot reproduce anymore maybe the site was sending bad header info for a while.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•