View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
16133Bug reportsPluginspublic2021-03-23 08:01
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status closedResolutionwon't fix 
Product Version4.1.17 
Summary16133: Unable to call survey::model in direct request
Description

When call

Steps To Reproduce

Import or add sendMailCron plugin

set to master to get https://gitlab.com/SondagesPro/mailing/sendMailCron/-/commit/c1e3a61afebfe227e4bedabc9370c6f107238794

[shnoulle@poledra www]$ php master/application/commands/console.php plugin index --target=sendMailCron
sendMailCronPHP Error[2]: session_name(): Cannot change session name when headers already sent
    in file /mnt/data/shnoulle/nginx/www/master/framework/web/CHttpSession.php at line 206
#0 /mnt/data/shnoulle/nginx/www/master/framework/web/CHttpSession.php(206): session_name()
#1 /mnt/data/shnoulle/nginx/www/master/framework/base/CComponent.php(152): ConsoleHttpSession->setSessionName()
#2 /mnt/data/shnoulle/nginx/www/master/framework/YiiBase.php(227): ConsoleHttpSession->__set()
#3 /mnt/data/shnoulle/nginx/www/master/framework/base/CModule.php(393): createComponent()
#4 /mnt/data/shnoulle/nginx/www/master/application/core/ConsoleApplication.php(22): ConsoleApplication->getComponent()
#5 /mnt/data/shnoulle/nginx/www/master/framework/web/auth/CWebUser.php(200): ConsoleApplication->getSession()
#6 /mnt/data/shnoulle/nginx/www/master/framework/base/CModule.php(394): LSWebUser->init()
#7 /mnt/data/shnoulle/nginx/www/master/framework/base/CModule.php(103): ConsoleApplication->getComponent()
#8 /mnt/data/shnoulle/nginx/www/master/application/core/LSYii_Validators.php(51): ConsoleApplication->__get()
#9 /mnt/data/shnoulle/nginx/www/master/application/models/Survey.php(203): LSYii_Validators->__construct()
#10 /mnt/data/shnoulle/nginx/www/master/framework/db/ar/CActiveRecord.php(1862): Survey->init()
#11 /mnt/data/shnoulle/nginx/www/master/framework/db/ar/CActiveRecord.php(1895): Survey->populateRecord()
#12 /mnt/data/shnoulle/nginx/www/master/framework/db/ar/CActiveRecord.php(1359): Survey->populateRecords()
#13 /mnt/data/shnoulle/nginx/www/master/application/models/LSActiveRecord.php(74): Survey->query()
#14 /mnt/data/shnoulle/nginx/www/master/framework/db/ar/CActiveRecord.php(1478): Survey->query()
#15 /mnt/data/shnoulle/nginx/www/master/plugins/sendMailCron/sendMailCron.php(313): Survey->findAll()
#16 /mnt/data/shnoulle/nginx/www/master/plugins/sendMailCron/sendMailCron.php(284): sendMailCron->sendTokenMessages()
#17 unknown(0): sendMailCron->sendMailByCli()
#18 /mnt/data/shnoulle/nginx/www/master/application/libraries/PluginManager/PluginManager.php(258): call_user_func()
#19 /mnt/data/shnoulle/nginx/www/master/application/commands/PluginCommand.php(45): LimeSurvey\PluginManager\PluginManager->dispatchEvent()
#20 unknown(0): PluginCommand->actionIndex()
#21 /mnt/data/shnoulle/nginx/www/master/framework/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#22 /mnt/data/shnoulle/nginx/www/master/framework/console/CConsoleCommandRunner.php(71): PluginCommand->run()
#23 /mnt/data/shnoulle/nginx/www/master/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#24 /mnt/data/shnoulle/nginx/www/master/framework/base/CApplication.php(185): ConsoleApplication->processRequest()
#25 /mnt/data/shnoulle/nginx/www/master/application/commands/console.php(64): ConsoleApplication->run()
Additional Information

Broke due to new way of check XSS

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)4.1.16 github
I will donate to the project if issue is resolvedNo
Browsernot relevant ?
Database type & versionnot relevant?
Server OS (if known)not relevant ?
Webserver software & version (if known)not relevant ?
PHP Versionnot relevant ?

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2020-04-13 18:33

developer   ~57101

Strangely, after a time it works ....
Don't understand why ...

Issue History

Date Modified Username Field Change
2020-04-13 18:32 DenisChenu New Issue
2020-04-13 18:32 DenisChenu Status new => assigned
2020-04-13 18:32 DenisChenu Assigned To => DenisChenu
2020-04-13 18:33 DenisChenu Note Added: 57101
2021-03-23 08:01 DenisChenu Assigned To DenisChenu =>
2021-03-23 08:01 DenisChenu Status assigned => new
2021-03-23 08:01 DenisChenu Assigned To => DenisChenu
2021-03-23 08:01 DenisChenu Status new => closed
2021-03-23 08:01 DenisChenu Resolution open => won't fix