You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org> on 2009/01/07 02:21:44 UTC
[jira] Commented: (TRINIDAD-1359) filedownloadactionlistener
firefox long filename is truncated
[ https://issues.apache.org/jira/browse/TRINIDAD-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661400#action_12661400 ]
Jeanne Waldman commented on TRINIDAD-1359:
------------------------------------------
fixed
> 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.