Ilija Studen:To update headers check out download_contents() function (in environment/functions/files.php). Report back if you find a solution.
Thanks
mcvogt:svalarino, Could you share with us the steps for installing ActiveCollab in an IIS, SSL environment?
The following errors are displayed after trying to "Save Target As" depending on the type of file being downloaded:
(1) The File could not be written to the cache
(2) Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
Some KB's suggest to turn off (clear, uncheck) this IE setting "Do not save encrypted pages to disk" (Tools >Advanced > Security) However this does not resolve the problem in activeCollab.
I believe the problem has to do with downloaded files being served by active Collab with the following http Header:
Cache-Control: no-store, no-cache, must-revalidate
Supposedly, if the the cache is set to "public" then IE will download files over SSL. This problems is well documented for other php projects. I have tried the following options:
(1) Adding an IIS header as in "Cache-Control: public, max-age=12000" does not work because it gets overwritten by the php http headers.
(2) Enabling and changing the session variables for PHP under IIS does produce the proper http headers. Example
---------------------------------------------------------------------
HTTP/1.1 200 OK
Connection: close
Date: Thu, 19 Oct 2006 22:32:51 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: PHP/5.1.6
Expires: Fri, 20 Oct 2006 01:52:51 GMT
Cache-Control: public, max-age=12000
Last-Modified: Thu, 12 Oct 2006 19:35:38 GMT
Content-Type: image/gif
---------------------------------------------------------------------
BTW, here is a great page describing PHP installation on Win32/IIS6 including setting PHP sessions: http://www.phplivesupport.com/documentation/viewarticle.php?uid=1&aid=78&pid=8
The problem is that activeCollab overwrites the PHP http header when downloading files resulting in http headers that cause the problem with IE downloads over SSL. Example:
----------------------------------------------------------------------------------------------
HTTP/1.1 200 OK
Connection: close
Date: Thu, 19 Oct 2006 22:52:23 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: PHP/5.1.6
Set-Cookie: id=1; expires=Thu, 19-Oct-2006 23:52:23 GMT; path=/
Set-Cookie: token=73b986c1869a50ba0bce6350209126a84db0838f; expires=Thu, 19-Oct-2006 23:52:23 GMT; path=/
Set-Cookie: remember=deleted; expires=Wed, 19-Oct-2005 22:52:22 GMT; path=/
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Expires: Fri, 20 Oct 2006 00:52:23 GMT
Last-Modified: Thu, 19 Oct 2006 22:52:23 GMT
Content-Type: image/tiff
Content-Length: 645344
Content-Disposition: inline; filename="CyberLogoVert.tif
Content-Transfer-Encoding: binary
----------------------------------------------------------------------------------------------
Specifically, "Cache-Control: no-store, no-cache, must-revalidate"
Both http headers cam from the same website but the first one was displaying info.php while the second was displaying an activeCollab "Files" download.
How can I get activeCollab not to overwrite the php http headers when downloading files so that they can be downloaded using IE over SSL?
I thank you in advance