[opencms-dev] OpenCMS 8/9 PDF Link IE8 not working
T.Kluge at t-systems.com
T.Kluge at t-systems.com
Thu Oct 30 16:32:38 CET 2014
Hi all,
We stuck on a problem that a CMS PDF is not downloadable within IE8 (all other browsers do) from within the cms surflet context.
The http response header looks like this:
HTTP/1.1 200 OK
Date: Thu, 30 Oct 2014 14:16:33 GMT
Server: OpenCms/9.0.1
X-FRAME-OPTIONS: SAMEORIGIN
Cache-Control: no-cache
Pragma: no-cache
Expires: 0
X-UA-Compatible: IE=Edge,chrome=1
Last-Modified: Wed, 29 Oct 2014 13:39:22 GMT
Content-Type: application/pdf
Content-Length: 73340
Via: 1.1 <server>
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
The only workaround that works currently is: setting the export property to true
the response header is then:
HTTP/1.1 200 OK
Date: Thu, 30 Oct 2014 15:08:17 GMT
Server: Apache-Coyote/1.1
X-FRAME-OPTIONS: SAMEORIGIN
Cache-Control: no-cache
Pragma: no-cache
Expires: 0
X-UA-Compatible: IE=Edge,chrome=1
Accept-Ranges: bytes
ETag: W/"1793087-1414681257762"
Last-Modified: Thu, 30 Oct 2014 15:00:57 GMT
Content-Type: application/pdf
Content-Length: 1793087
Via: 1.1 slaweb01.atriumberlin.de
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
But this can't be the final solution because, this document would be downloadable without cmslogin
The none working manifest.xml section is:
<file>
<source>sites/default/cnt/home/<path>/<filename></source>
<destination>sites/default/cnt/home/<path>/<filename></destination>
<type>binary</type>
<uuidstructure>fd7e5bcd-5f70-11e4-88e4-f01faf26b604</uuidstructure>
<uuidresource>fd7e5bce-5f70-11e4-88e4-f01faf26b604</uuidresource>
<datelastmodified>Thu, 30 Oct 2014 14:58:34 GMT</datelastmodified>
<userlastmodified>tkluge</userlastmodified>
<datecreated>Wed, 29 Oct 2014 13:39:22 GMT</datecreated>
<usercreated>tkluge</usercreated>
<flags>0</flags>
<properties>
<property>
<name>Title</name>
<value><![CDATA[Download of File]]></value>
</property>
<property>
<name>export</name>
<value><![CDATA[false]]></value>
</property>
</properties>
<relations/>
<accesscontrol/>
</file>
The filesize is 73340
The effect is an empty page with that src content:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>
If I press F12 in the download page, the document mode is Quirks.
Any help?
Thanks Thomas
More information about the opencms-dev
mailing list