You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2014/07/08 22:22:04 UTC
[jira] [Updated] (WW-3506) JasperReports PDF does not display in IE
using HTTPS
[ https://issues.apache.org/jira/browse/WW-3506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3506:
------------------------------
Description:
Internet Explorer does not normally cache items from HTTPS sites, so cannot store PDF documents prior to launching Adobe Reader.
See http://support.microsoft.com/kb/323308
Change JasperReportsResult.java ~ line 285 to add the following:
{code:java}
if ("https".equalsIgnoreCase(request.getScheme()))
{
// set the the HTTP Header to work around IE SSL weirdness
response.setHeader("CACHE-CONTROL", "PRIVATE");
response.setHeader("Cache-Control", "maxage=3600");
response.setHeader("Pragma", "public");
response.setHeader("Accept-Ranges", "none");
}
{code}
was:
Internet Explorer does not normally cache items from HTTPS sites, so cannot store PDF documents prior to launching Adobe Reader.
See http://support.microsoft.com/kb/323308
Change JasperReportsResult.java ~ line 285 to add the following:
if ("https".equalsIgnoreCase(request.getScheme()))
{
// set the the HTTP Header to work around IE SSL weirdness
response.setHeader("CACHE-CONTROL", "PRIVATE");
response.setHeader("Cache-Control", "maxage=3600");
response.setHeader("Pragma", "public");
response.setHeader("Accept-Ranges", "none");
}
> JasperReports PDF does not display in IE using HTTPS
> ----------------------------------------------------
>
> Key: WW-3506
> URL: https://issues.apache.org/jira/browse/WW-3506
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - JasperReports
> Affects Versions: 2.2.1
> Environment: Windows; Internet Explorer 6, 7, 8; HTTPS
> Reporter: Andrew McCallum
> Fix For: 2.3.18
>
>
> Internet Explorer does not normally cache items from HTTPS sites, so cannot store PDF documents prior to launching Adobe Reader.
> See http://support.microsoft.com/kb/323308
> Change JasperReportsResult.java ~ line 285 to add the following:
> {code:java}
> if ("https".equalsIgnoreCase(request.getScheme()))
> {
> // set the the HTTP Header to work around IE SSL weirdness
> response.setHeader("CACHE-CONTROL", "PRIVATE");
> response.setHeader("Cache-Control", "maxage=3600");
> response.setHeader("Pragma", "public");
> response.setHeader("Accept-Ranges", "none");
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)