Closed Bug 225331 Opened 22 years ago Closed 22 years ago

File Download adds extension ".jsp"

Categories

(Core Graveyard :: File Handling, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 65827

People

(Reporter: srinivas_rc, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Hi, This may be duplicate of bug # 199832, but it seems to explain it for mozilla 1.3. I am using mozilla 1.5 and still has the same problem. I have a JSP file which tries to write some data on output stream. When i try to save as.. it shows file name as 'download.sql.jsp'. I searched through the Edit Preferences , Helper applications, and there is no list for test/sql. Still this works as intended in IE 6.0 Reproducible: Always Steps to Reproduce: Sample JSP Code: --------------------------------------------------------------------------------- <%@ page import="java.io.*" %> <% String filename = "Download.sql"; response.setContentType("text/sql"); response.setHeader("Content-disposition", "attachment;filename=\"" + filename + "\""); response.addHeader("Content-description", "SQL File"); ServletOutputStream outStream = response.getOutputStream(); FileInputStream fis = new FileInputStream("c:/temp/rose.sql"); int size = fis.available(); byte [] data = new byte[size]; fis.read(data); outStream.write(data); fis.close(); System.out.println("Wrote ==> " + size); outStream.flush(); outStream.close(); %> --------------------------------------------------------------------------------- Actual Results: save as dialog box showed file name as 'Download.sql.jsp' Expected Results: show file name as 'Download.sql' This way when i say Open, it will open with my default application, in this case 'Vim' :) I was using tomcat/jboss bundle to test it.
well, the correct component would have been "file handling"; but, this is already fixed, after 1.5. *** This bug has been marked as a duplicate of 65827 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Component: Browser-General → File Handling
Resolution: --- → DUPLICATE
Summary: File Download adds extension ".jsp" → File Download adds extension ".jsp"
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.