#19 SSL file export IE Problem

closed
nobody
None
5
2005-11-29
2005-11-29
No

Internet Explorer cannot save or open files exported
from Openreports after Tomcat is setup for SSL.

After an upgrading Tomcat to SSL, Internet Explorer
loses exported reports. The save prompt appears but
fails to save.

After some research I discovered the following.

1 The problem is IE mishandles these
Pragma: No-cache
Cache-Control: no-cache

2 This has been a problem since IE 4.01 and MS have
never fixed it.

3 IE is only browser that does this.

More about the problem and recommendations here (Not
directly related to Openreports)
http://forum.java.sun.com/thread.jspa?forumID=45&threadID=233446

Solution for Openreports 1.0-M1 (should work on others)
-------------------------------------------------------

1
--

Find file "ReportRunAction.java" in directory
"openreports-1.0-M1\src\org\efs\openreports\actions"
and change the lines

// set headers to disable caching
response.setHeader("Cache-Control", "no-store,
no-cache, must-revalidate");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "0");

to

response.setHeader("Pragma", "public");
response.setHeader("Cache-Control", "max-age=0");

Some texts suggest using “response.addHeader” but this
can give mixed results.

I have attached the file edited and commented

2
--

Recompile, for which you must have ant installed.

At command/bash/csh prompt in the root directory of the
package, look for the "build.xml" file, type the
following and press return

ant compile

3
--

Now find the file "ReportRunAction.class" in directory
"openreports-1.0-M1\WebRoot\WEB-INF\classes\org\efs\openreports\actions"
and copy it to your server in the same subdirectory.

Restart Tomcat and it now works.

Discussion

  • DeligatedGeek

    DeligatedGeek - 2005-11-29

    Edited ReportRunAction.Java

     
  • DeligatedGeek

    DeligatedGeek - 2005-11-29
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks