View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16694 | Bug reports | Import/Export | public | 2020-09-24 20:21 | 2020-10-12 09:28 |
Reporter | Selcal | Assigned To | gabrieljenik | ||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 4.3.17 | ||||
Summary | 16694: Export multiple surveys (lss, lsa) to ZIP crashes or does not export reports/tokens for correct survey | ||||
Description | If exporting multiple surveys to ZIP, the export_helper.php does not reference the correct survey in function buildXMLFromQuery If logging in, and going straight to Surveys -> select multiple -> export as lss/lsa, an exception may occur if session['LEMsid'] is set to a survey that does not match the export type. Occurs (tested) also on 4.3.3. | ||||
Steps To Reproduce | Surveys -> Multi-select -> export to zip archive (lsa) | ||||
Additional Information | By setting the $session['LEMsid'] temporarily,and setting it back after each export in function _exportarchive, I have worked around this and had correct functionality: Change application/controllers/admin/export.php at line 976: After: After: | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 4.3.17+200921 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | MySQL | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 7.2 | ||||
https://github.com/LimeSurvey/LimeSurvey/pull/1610 In 'buildXMLFromQuery', the survey ID is needed for response and token decryption. |
|
This could be happening as well on Lsv3 |
|
I found this bug when migrating several v3.22.25 and v4.x.x installations. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=30560 |
|
Fixed in Release 4.3.20+201012 |
|
LimeSurvey: master 88a9a285 2020-10-01 16:41
Committer: Details Diff |
Fixed issue 16694: Export multiple surveys (lss, lsa) to ZIP crashes or does not export reports/tokens for correct survey In 'buildXMLFromQuery', the survey ID is needed for response and token decryption. It was being derived from session. which worked when exporting a single survey info, or from within a survey. Now an optional parameter was added so the ID can be specified by the caller. |
Affected Issues 16694 |
|
mod - application/helpers/export_helper.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-09-24 20:21 | Selcal | New Issue | |
2020-09-25 15:05 | cdorin | Assigned To | => gabrieljenik |
2020-09-25 15:05 | cdorin | Status | new => assigned |
2020-10-01 14:42 | gabrieljenik | Note Added: 60022 | |
2020-10-01 14:42 | gabrieljenik | Note Added: 60023 | |
2020-10-01 20:56 | Selcal | Note Added: 60041 | |
2020-10-08 22:31 |
|
Changeset attached | => LimeSurvey master 88a9a285 |
2020-10-08 22:31 | gabrieljenik | Note Added: 60128 | |
2020-10-08 22:31 | gabrieljenik | Resolution | open => fixed |
2020-10-12 09:28 | lime_release_bot | Note Added: 60147 | |
2020-10-12 09:28 | lime_release_bot | Status | assigned => closed |