View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
04800Bug reportsImport/Exportpublic2010-12-15 13:43
Reporteruser11063Assigned Toadamzammit  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Fixed in Version1.90+ 
Summary04800: queXML-survey export over https-connection fails with Internet Explorer 8 [patch attached]
Description

The quexml export filter still sets the pragma: no-cache header which causes problems in IE when using a https-connection (see also bug 04304).

The attached patch sets the pragma-header to "public" in the limesurvey-xml and the quexml export functions. Additionally, the content-type header is set to "text/xml".

Steps To Reproduce

Do a quexml-export from Limesurvey via a https-connection with Internet Explorer. This should produce an error message saying: 'Internet explorer cannot download admin.php from example.org. Internet explorer was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again later.'

TagsNo tags attached.
Attached Files
exportfix-1.90+build_9561.diff (1,874 bytes)   
diff -ruN .\limesurvey-orig/admin/export_structure_quexml.php .\limesurvey-exportfix/admin/export_structure_quexml.php
--- .\limesurvey-orig/admin/export_structure_quexml.php	2010-08-19 05:43:49.000000000 +0100
+++ .\limesurvey-exportfix/admin/export_structure_quexml.php	2010-12-07 16:09:29.351673300 +0000
@@ -517,12 +517,12 @@
 
 
 $fn = "survey_$surveyid.xml";
-header("Content-Type: application/download");
+header("Content-Type: text/xml");
 header("Content-Disposition: attachment; filename=$fn");
 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
 Header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
-header("Pragma: no-cache");                          // HTTP/1.0
+header("Pragma: public");                          // HTTP/1.0
 
 echo $dom->dump_mem(true,'UTF-8');
 exit;
diff -ruN .\limesurvey-orig/admin/export_structure_xml.php .\limesurvey-exportfix/admin/export_structure_xml.php
--- .\limesurvey-orig/admin/export_structure_xml.php	2010-12-07 15:54:47.717719500 +0000
+++ .\limesurvey-exportfix/admin/export_structure_xml.php	2010-12-07 16:09:42.389673300 +0000
@@ -197,12 +197,12 @@
 if (!isset($copyfunction))
 {
     $fn = "limesurvey_survey_$surveyid.lss";      
-    header("Content-Type: text/html/force-download");
+    header("Content-Type: text/xml");
     header("Content-Disposition: attachment; filename=$fn");
     header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
     header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
     header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
-    header("Pragma: cache");                          // HTTP/1.0
+    header("Pragma: public");                          // HTTP/1.0
     echo getXMLData();
     exit;
 }
exportfix-1.90+build_9561.diff (1,874 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)9561
I will donate to the project if issue is resolvedNo
BrowserInternet Explorer 8
Database type & versionMySQL 5.1
Server OS (if known)Windows 2008 R2
Webserver software & version (if known)IIS 7
PHP Version5.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2010-12-08 22:56

administrator   ~13727

Adam, can you apply this fix on limesurvey and limesurvey_dev please?

adamzammit

adamzammit

2010-12-09 00:01

developer   ~13729

Hi Carsten,

This has been applied to limesurvey in rev 9606 and limesurvey_dev in 9607.

I have tested it over SSL using IE 8 and Firefox 3.6.12

Regards,
Adam Zammit

c_schmitz

c_schmitz

2010-12-10 01:32

administrator   ~13741

Great, please set this issue to resolved, then.

c_schmitz

c_schmitz

2010-12-15 13:43

administrator   ~13794

Released in 1.90+ version.

Issue History

Date Modified Username Field Change
2010-12-08 12:21 user11063 New Issue
2010-12-08 12:21 user11063 File Added: exportfix-1.90+build_9561.diff
2010-12-08 12:22 user11063 Issue Monitored: user11063
2010-12-08 22:55 c_schmitz Assigned To => adamzammit
2010-12-08 22:55 c_schmitz Status new => assigned
2010-12-08 22:56 c_schmitz Note Added: 13727
2010-12-09 00:01 adamzammit Note Added: 13729
2010-12-10 01:32 c_schmitz Note Added: 13741
2010-12-10 01:35 adamzammit Status assigned => resolved
2010-12-10 01:35 adamzammit Fixed in Version => 1.90+
2010-12-10 01:35 adamzammit Resolution open => fixed
2010-12-15 13:43 c_schmitz Note Added: 13794
2010-12-15 13:43 c_schmitz Status resolved => closed