periods not allowed in helper application file extension

NEW
Unassigned

Status

()

Firefox
File Handling
15 years ago
a year ago

People

(Reporter: Tristan Miller, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: DUPEME)

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910

If a new file type is added in the Helper Applications dialog, and one specifies
periods in the file extension, the periods are silently stripped.  The
developers probably thought that this was a Good Thing, but I believe it is
preventing users from specifying that compressed Postscript files (.ps.gz)
should be opened with a Postscript viewer (many of which automatically
decompress gzipped ps files).  Perhaps only periods occurring at the beginning
of the file extension should be stripped (if any).

Reproducible: Always

Steps to Reproduce:
1. Edit->Preferences->Navigator->Helper Applications
2. New Type
3. File Extension: .ps.gz
   (Enter other fields as desired)
4. OK
5. Click on the new type in the "File types:" frame to select it.

Actual Results:  
The extension shown below the frame is "psgz".

Expected Results:  
The extension should have been saved as "ps.gz".
Note that for a file named foo.ps.gz the extension would be "gz" and hence a
helper for extension "ps.gz" would still not be triggered....

That said, this is a dup.
Whiteboard: DUPEME
(Reporter)

Comment 2

15 years ago
Maybe so, but my Netscape 4.78 knows to open .ps.gz files and save .gz files.  I
suppose this is because the web server recognizes the .ps.gz extension and sets
the appropriate content type.  I hope that Mozilla gives the content type
priority over the file extension as Netscape 4.78 seems to, but because of bug
170086, there's no way for me to check.
> I suppose this is because the web server recognizes the .ps.gz extension and
> sets the appropriate content type.

If it does that for NS4, that's one buggy web server....  NS4 does not support
HTTP/1.1 features like content encoding.

> I hope that Mozilla gives the content type priority over the file extension

It does.
QA Contact: sairuh → petersen

Comment 4

15 years ago
Reporter can you reproduce this bug with a newer build (1.4 final)?
If not, then please close this bug as worksforme. Thanks.

Comment 5

14 years ago
Confirming; this bug is present in 1.6 and 1.8a-0420, Win2K.

See bug 236212 comment 11 & 12.  Updating platform; CC'ing cbiesinger.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Whiteboard: DUPEME
sorry, this is not the bug you want afaict... per comment 0, this is about
entering _two_ extensions (.ps.gz), not just one with a dot.

in fact it seems like comment 0 shows that the bug you're seeing is
worksforme... (the dots are stripped, as expected)
Mike, next time you decide to confirm bugs that I left unconfirmed and DUPEME,
please think long and hard.  Especially about removing the DUPEME annotation.
Whiteboard: DUPEME

Comment 8

14 years ago
I screwed that up completely; my apologies to all, particularly to Tristan for 
cluttering his bug.
Assignee: law → nobody
QA Contact: chrispetersen → file-handling

Updated

a year ago
Component: File Handling → File Handling
Product: Core → Firefox
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.