View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17962 | Bug reports | Import/Export | public | 2022-03-15 16:17 | 2022-05-19 17:18 |
Reporter | gabrieljenik | Assigned To | gabrieljenik | ||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.25.20 | ||||
Summary | 17962: Export fails when called from a Cron process or console application | ||||
Description | Error is "Property "ConsoleApplication.action" is not defined." The bug is due to checing for action inside SurveyDao.php. Solution: Check if action attribute exists as when running console applicatios, the action attribute is not there. | ||||
Steps To Reproduce | Steps to reproduceRun a plugin that exports survey results from a Cron process or console application Expected resultSurvey results are issued Actual resultCode Dump | ||||
Tags | No tags attached. | ||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 3.25.20 | ||||
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 | ||||
Same issue in 5.x ? My workaround : https://gitlab.com/SondagesPro/managament/responseListAndManage/-/blob/master/responseListAndManage.php#L1062 |
|
Clearly not ! |
|
Can we inject the action instead? Or is this too early in the stack for controller action to be set? |
|
When we tried Denis recipe we got we couldn't set properties that doesn't exist. |
|
Nope, we would need to update application/core/ConsoleApplication.php |
|
Does the LSYii controller have an action property? |
|
Sorry to hear it don't work for Cron. Real solution : don't use
I supspect a quick fix due to broken remote control export. |
|
Actually is on CController.php |
|
Related : 17951: Direct request is not default in cron action anymore ? https://bugs.limesurvey.org/view.php?id=17951 |
|
PR for LTS: https://github.com/LimeSurvey/LimeSurvey/pull/2417 |
|
Master PR: https://github.com/LimeSurvey/LimeSurvey/pull/2419 |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33487 |
|
Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33488 |
|
Fixed in Release 5.3.15+220519 |
|
LimeSurvey: master 94ed2461 2022-05-17 14:34:27 Committer: GitHub Details Diff |
Fixed issue 17962: Export fails when called from a Cron process or console application (#2419) |
Affected Issues 17962 |
|
mod - application/helpers/admin/export/SurveyDao.php | Diff File | ||
LimeSurvey: 3.x-LTS 8bae825e 2022-05-17 14:34:39 Committer: GitHub Details Diff |
Fixed issue 17962: Export fails when called from a Cron process or console application (#2417) |
Affected Issues 17962 |
|
mod - application/helpers/admin/export/SurveyDao.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-03-15 16:17 | gabrieljenik | New Issue | |
2022-03-15 16:17 | gabrieljenik | File Added: image.png | |
2022-03-15 16:22 | DenisChenu | Note Added: 68677 | |
2022-03-15 16:22 | DenisChenu | Bug heat | 0 => 2 |
2022-03-15 16:22 | DenisChenu | Note Added: 68678 | |
2022-03-15 17:42 | ollehar | Note Added: 68682 | |
2022-03-15 17:42 | ollehar | Bug heat | 2 => 4 |
2022-03-15 17:52 | gabrieljenik | Note Added: 68683 | |
2022-03-15 17:52 | gabrieljenik | File Added: image-2.png | |
2022-03-15 17:52 | gabrieljenik | Bug heat | 4 => 6 |
2022-03-15 17:56 | gabrieljenik | Note Added: 68684 | |
2022-03-15 17:59 | ollehar | Note Added: 68686 | |
2022-03-15 18:01 | DenisChenu | Note Added: 68687 | |
2022-03-15 18:09 | gabrieljenik | Note Added: 68688 | |
2022-03-16 17:25 | galads | Assigned To | => galads |
2022-03-16 17:25 | galads | Status | new => acknowledged |
2022-03-16 17:29 | DenisChenu | Note Added: 68699 | |
2022-05-04 08:30 | galads | Assigned To | galads => gabrieljenik |
2022-05-04 08:30 | galads | Status | acknowledged => assigned |
2022-05-13 18:35 | gabrieljenik | Note Added: 69635 | |
2022-05-13 18:36 | gabrieljenik | Status | assigned => testing |
2022-05-16 18:11 | gabrieljenik | Note Added: 69677 | |
2022-05-17 14:34 | gabrieljenik | Changeset attached | => LimeSurvey master 94ed2461 |
2022-05-17 14:34 | gabrieljenik | Note Added: 69729 | |
2022-05-17 14:34 | gabrieljenik | Resolution | open => fixed |
2022-05-17 14:34 | c_schmitz | Status | testing => resolved |
2022-05-17 15:21 | gabrieljenik | Changeset attached | => LimeSurvey 3.x-LTS 8bae825e |
2022-05-17 15:21 | gabrieljenik | Note Added: 69739 | |
2022-05-19 17:18 | LimeBot | Note Added: 69865 | |
2022-05-19 17:18 | LimeBot | Status | resolved => closed |
2022-05-19 17:18 | LimeBot | Bug heat | 6 => 8 |