Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3506

JasperReports PDF does not display in IE using HTTPS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.3.20
    • Plugin - JasperReports
    • None
    • Windows; Internet Explorer 6, 7, 8; HTTPS

    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:

              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");
      		}
      

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            andrewmccallum Andrew McCallum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: