View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09407Bug reportsImport/Exportpublic2015-02-11 15:57
Reportertremlin Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.05+ 
Summary09407: question and group export uses HTML content-type
Description

The export of questions and question groups uses
Content-Type: text/html/force-download

This causes problems if LimeSurvey runs behind Apache mod_proxy_html. Wouldn't
text/xml
be more appropriate?

(The problems behind mod_proxy_html are: XML document is wrapped in <html><body>-tags; all tags are converted to lowercase as tags in HTML are not case-sensitive.)

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)141126
I will donate to the project if issue is resolvedNo
Browser
Database type & version178
Server OS (if known)Debian 7
Webserver software & version (if known)Apache 2.2.22
PHP Version5.4.35

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2014-12-17 12:49

administrator   ~31290

What kind of problems does it create?
The problem with text/xml is that some browsers add their own .xml extension to the file on download.

tremlin

tremlin

2014-12-21 20:33

reporter   ~31326

As already sketched above, the problem is that mod_proxy_html looks at the Content-Type of a document to decide whether it has to apply its magic to it or to pass it unchanged. Because mod_proxy_html thinks the XML export is HTML, I noticed at least two problems:

  • Everything gets wrapped in a <html><body>...</body></html>.
  • Tags are converted into lower case, which is a problem with 'LimeSurveyDocType' and 'DBVersion'.

Would application/xml solve the problem that some browsers add their own extension? Just out of curiosity, do you know an example for a browser that behaves this way?

c_schmitz

c_schmitz

2014-12-21 22:46

administrator   ~31327

AFAIK does application/xml the same. Problem browser is Safari.

c_schmitz

c_schmitz

2014-12-30 11:26

administrator   ~31396

I fixed this by using application/force-download.

c_schmitz

c_schmitz

2014-12-30 11:29

administrator   ~31397

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=14812

c_schmitz

c_schmitz

2014-12-30 11:33

administrator   ~31398

Fix committed to 2.06 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=14813

tremlin

tremlin

2014-12-31 15:48

reporter   ~31406

Thanks!

c_schmitz

c_schmitz

2015-02-11 15:57

administrator   ~31674

Version 2.05 Build 150211 released

Related Changesets

LimeSurvey: master 72f53da1

2014-12-30 10:28:42

c_schmitz

Details Diff
Fixed issue 09407: Question and group export uses HTML content-type Affected Issues
09407
mod - application/controllers/InstallerController.php Diff File
mod - application/controllers/admin/export.php Diff File
mod - application/helpers/export_helper.php Diff File

LimeSurvey: 2.06 77357a0b

2014-12-30 10:33:29

c_schmitz

Details Diff
Fixed issue 09407: Question and group export uses HTML content-type Affected Issues
09407
mod - application/controllers/InstallerController.php Diff File
mod - application/controllers/admin/export.php Diff File
mod - application/helpers/export_helper.php Diff File

Issue History

Date Modified Username Field Change
2014-12-14 20:06 tremlin New Issue
2014-12-17 12:49 c_schmitz Note Added: 31290
2014-12-17 12:49 c_schmitz Assigned To => c_schmitz
2014-12-17 12:49 c_schmitz Status new => feedback
2014-12-21 20:33 tremlin Note Added: 31326
2014-12-21 20:33 tremlin Status feedback => assigned
2014-12-21 22:46 c_schmitz Note Added: 31327
2014-12-30 11:26 c_schmitz Note Added: 31396
2014-12-30 11:29 c_schmitz Changeset attached => LimeSurvey master 72f53da1
2014-12-30 11:29 c_schmitz Note Added: 31397
2014-12-30 11:29 c_schmitz Resolution open => fixed
2014-12-30 11:33 c_schmitz Changeset attached => LimeSurvey 2.06 77357a0b
2014-12-30 11:33 c_schmitz Note Added: 31398
2014-12-30 11:34 c_schmitz Status assigned => resolved
2014-12-30 11:34 c_schmitz Fixed in Version => 2.05+
2014-12-31 15:48 tremlin Note Added: 31406
2015-02-11 15:57 c_schmitz Note Added: 31674
2015-02-11 15:57 c_schmitz Status resolved => closed