Skip to main content



      Home
Home » Archived » BIRT » Viewer fails for pdf running https and IE
Viewer fails for pdf running https and IE [message #158114] Thu, 04 May 2006 04:21 Go to next message
Eclipse UserFriend
Originally posted by: jarle.logit-systems.com

Running the birt-viewer 2.0.1 through an ssl enabled IIS caused the pdf
format to fail when running the following link in Internet Explorer:

https://myserver.com/birt-viewer/run?__report=CUST-REP1.rptd esign&__format=pdf

This caused internet explorer to give a File Download - Security Warning
and then the Error message:

"Internet Explorer was not able to open this Internet site. The request
site is either unavailable or cannot be found. Please try again later."

I know it works since Firefox displays the pdf without problems.
Re: Viewer fails for pdf running https and IE [message #158136 is a reply to message #158114] Thu, 04 May 2006 04:52 Go to previous message
Eclipse UserFriend
Originally posted by: jarle.logit-systems.com

According to a number of posts "out there" this probably had something to
do with the respose header for "Chache-Control" being "no-cache". Because
of this I wanted to set the "Cache-Control" to "no-store" which should
cause the pdf document never to be cached and should not even be stored in
a temporary location on disk. I also set "Pragma" to "no-store" to support
older browsers.

I downloaded the source code for birt, as described in
http://www.eclipse.org/birt/phoenix/build/buildInstructions. php

In the project "org.eclipse.birt.report.viewer" the file
" org.eclipse.birt.report.viewer.aggregation.layout.EngineFrag ment.java " I
made some changes at line 54 - 59

original code:

else if ( ParameterAccessor.PARAM_FORMAT_PDF.equalsIgnoreCase(

ParameterAccessor.getFormat( request ) ) )
{
response.setContentType( "application/pdf" ); //$NON-NLS-1$
}
else
{
response.setContentType( "text/html;charset=utf-8" );//$NON-NLS-1$
response.setHeader( "cache-control", "no-cache" );
//$NON-NLS-1$//$NON-NLS-2$
}

modified code:
else if ( ParameterAccessor.PARAM_FORMAT_PDF.equalsIgnoreCase(

ParameterAccessor.getFormat( request ) ) )
{
response.setHeader( "cache-control", "no-store" );
response.setHeader( "Pragma", "no-store" );
response.setContentType( "application/pdf" ); //$NON-NLS-1$
}
else
{
response.setContentType( "text/html;charset=utf-8" );//$NON-NLS-1$
response.setHeader( "cache-control", "no-cache" );
//$NON-NLS-1$//$NON-NLS-2$
}


If this is a bug, should I report it in Bugzilla?

Regards Jarle
Previous Topic:ODF now an IOS/IEC standard
Next Topic:Missing report items
Goto Forum:
  


Current Time: Tue Jul 08 11:50:45 EDT 2025

Powered by FUDForum. Page generated in 0.02916 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top