filedownloadactionlistener firefox long filename is truncated
-------------------------------------------------------------
Key: TRINIDAD-1359
URL: https://issues.apache.org/jira/browse/TRINIDAD-1359
Project: MyFaces Trinidad
Issue Type: Bug
Components: Components
Reporter: Jeanne Waldman
Assignee: Jeanne Waldman
Priority: Minor
For filedownloadactionlistener if the filename is really long, it gets
truncated in Firefox and it works fine in IE.
To reproduce:
>From the table demos, tableDemos/exportAsCSV.jspx
Set
filename="Where-does-it-want-to-cut-off-this-file-is-it-here-or-here-trinidad-to-check-cutoff-longer.csv"
Run demo. In Firefox, the file gets saved, but the name is shortened to
"Where-does-it-want-to-cut-off-this-file-is-it-h"
Fix:
The fix is probably to set quotes around the filename in
FileDownloadActionListener.java in
hsr.setHeader("Content-Disposition",
"attachment; filename=" + encodeHTTPHeaderFilename);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.