Closed Bug 246837 Opened 20 years ago Closed 19 years ago

"Save link As" picks up the Servlet name instead of file name when the httpservletresponse is redirected to a file

Categories

(Core Graveyard :: File Handling, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 299372

People

(Reporter: srella, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007

Assume, I have an anchor link <a href="http://localhost/webapp/test?
sessionID=xyz&cmd=abc&attach=abc.txt">attachment</a>,
	
	upon clicking the above link, the usecase copies the file from 
database to webserver and redirects the httpservletresponse to this file(say 
abc.txt).
	
On servletresponse redirect, the "Save As" dialog pops suggesting the file 
name as "test" (which is the servlet name), infact the actual file name is 
abc.txt
	

Reproducible: Always
Steps to Reproduce:
1.Create a simple servlet with a  basic Usecase.
2.The Anchor HREF, is a usecase request whose response would redirect to a 
file on the webserver.
3. click on anchor link

Actual Results:  
the "Save As" dialog suggests the servlet name as the file name

Expected Results:  
the acutal file name should be suggested in the "Save As" dialog.

If you need the test Servlet, I can send it to you.
> If you need the test Servlet, I can send it to you.

can you attach the sourcecode of that servlet here?


Attached file TestServlet source.
you can deploy this servlet in your local webabb and try this link

http://localhost/test/TestServlet?fileName=one.xml&filePath=d:/temp/

PS: you can change the fileName and filePath parameter values.
When u hit this URL, "save to disk" window pops up, on selecting save to disk,
You will see the file name suggested is the Servlet name instead of actual file
name.
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
(In reply to comment #3)

May I suggest that this bug may be marked as a duplicate of 299372 ???
probably... but the bug isn't clear whether it uses the helper app dialog or the context menu entry

*** This bug has been marked as a duplicate of 299372 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Attachment #150862 - Attachment mime type: application/octet-stream → text/plain
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: