Open Bug 380046 Opened 17 years ago Updated 2 years ago

Download manager always adds a .htm extension to a text file without any extension

Categories

(Toolkit :: Downloads API, defect)

x86
Windows 7
defect

Tracking

()

REOPENED

People

(Reporter: pelzowski, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.8.1.3) Gecko/20070322 KateOS BonEcho/2.0.0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a5pre) Gecko/20070507 Minefield/3.0a5pre

Download manager always adds a .htm extension to a text file without any extension, usually leading to problems. (try to download "spec" file for any linux app)

Reproducible: Always

Steps to Reproduce:
1. download a file without any extension. Plain text file like text_file_foo

Actual Results:  
File is saved with additional extension appended  , text_file_foo.htm

Expected Results:  
Keep original file without extension , text_file_foo
I cannot reproduce this on Minefield 3.0a8 build 2007080704.  Reporter, do you still see this if you get the latest nightly?

If so, could you please create a test case?  Thanks.

If you do not see this bug anymore, please close this as WORKSFORME.

It will be closed in 2 weeks if there is no response.
Whiteboard: CLOSEME 08/21
I can reproduce it.

http://vogel.iglu.cz/kadu/notify2/
file "spec" 

When i click on it, it will open this text file in firefox. Then "save as" from menu File will save this file correctly.

But when I click on "spec" with right mouse button and then I will use "save link as..." Minefield will add ".htm"
Confirmed comment #3 with
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a8pre) Gecko/2007080704 Minefield/3.0a8pre
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.7pre) Gecko/20070807 BonEcho/2.0.0.7pre

Looks similar to bug 299372.
Whiteboard: CLOSEME 08/21
I can also confirm comment #3 on Ubuntu 7.10 Beta with 
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a9pre) Gecko/2007100209 Minefield/3.0a9pre ID:2007100209
An older report of the same bug: bug 361125.
May be related: bug 332634.
Whiteboard: DUPEME
Resolving old UNCONFIRMED Download Manager bugs as INCOMPLETE.  If you still see this issue, please reopen.

To mark all these bug changes as read, filter on ONOMATOPOEIA.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
Product: Firefox → Toolkit
Whiteboard: DUPEME
I am not sure how to reopen this defect, but this is happening on Firefox ver. 36.0.4 for me (on Windows 7 64-bit). My specific case is downloading a "Makefile" which is an attachment to a JIRA bug report.

* If I click the file directly the download dialog shows the document type as HTML
* If I right-click save the link, then in the save dialog I cannot save the file without an extension. It always appends ".htm" even if I choose "All files" in "Save as type:".
If you can provide steps that we can use to reproduce this, including a minimized testcase or URL(s), then I'd be happy to reopen this for you.
I am sorry but I am no expert with web development, so here is a simple attempt:

# Open this link: https://dl.dropboxusercontent.com/u/64074498/test/one.html
# Right-click "Makefile" and choose "Save link as..."
# In the dialog, the default filename is "Makefile.txt", which is incorrect
# Remove ".txt" from filename and select "All files (*.*)" in "Save as type:"
# Save the file, and you will see that it still saved "Makefile.txt" instead of just "Makefile"

Hope this helps...
Thanks, those steps reproduce for me but only on Windows. It appears as the Mac and Linux both save the file as "Makefile". Also, Internet Explorer on Windows saves this as a generic file called "Makefile". I believe that's sufficient information to reopen this bug.
Status: RESOLVED → REOPENED
Ever confirmed: true
OS: Linux → Windows 7
Resolution: INCOMPLETE → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.