View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
14125 | Bug reports | Installation | public | 2018-10-02 17:31 | 2019-04-30 09:10 |
Reporter | DenisChenu | Assigned To | DenisChenu | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.14.x | ||||
Fixed in Version | 3.14.x | ||||
Summary | 14125: DB user with insufficient right can show white page when installing | ||||
Description | With IIS + SQL server : if user have insufficient right (READ/WRITE role, not db_owner) : this broke with a 500 error without any information. | ||||
Steps To Reproduce | With mysql/apache : it's better show a 500 with the DB error. Need hacking index.php for IIS Then with mysql Launch new install | ||||
Tags | No tags attached. | ||||
Attached Files | index.php.html (1,661 bytes)
<html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body>CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: Syntax error or access violation: 1142 CREATE command denied to user 'sp-read'@'localhost' for table 'lime_answers' #0 /home/sondages.pro/htdocs/wordpress/limesurvey/framework/db/CDbCommand.php(1352): CDbCommand->execute() #1 /home/sondages.pro/htdocs/wordpress/limesurvey/installer/create-database.php(36): CDbCommand->createTable('{{answers}}', Array) #2 /home/sondages.pro/htdocs/wordpress/limesurvey/application/controllers/InstallerController.php(911): createDatabase(Object(DbConnection)) #3 /home/sondages.pro/htdocs/wordpress/limesurvey/application/controllers/InstallerController.php(513): InstallerController->_setup_tables('/home/sondages....') #4 /home/sondages.pro/htdocs/wordpress/limesurvey/application/controllers/InstallerController.php(83): InstallerController->stepPopulateDb() #5 /home/sondages.pro/htdocs/wordpress/limesurvey/framework/web/CWebApplication.php(282): InstallerController->run('populatedb') #6 /home/sondages.pro/htdocs/wordpress/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController('installer/popul...') #7 /home/sondages.pro/htdocs/wordpress/limesurvey/framework/base/CApplication.php(185): CWebApplication->processRequest() #8 /home/sondages.pro/htdocs/wordpress/limesurvey/index.php(194): CApplication->run() #9 {main}<div class="alertify-notifier ajs-bottom ajs-right"></div><div class="alertify"><iframe class="ajs-footer" src="index.php_fichiers/alerts.html"></iframe></div></body></html> | ||||
Bug heat | 2 | ||||
Complete LimeSurvey version number (& build) | 3.14.11 github | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | not relevant | ||||
Database type & version | mysql + mssql (+ surely pgsql with invalid rights) | ||||
Server OS (if known) | windows (and linux) | ||||
Webserver software & version (if known) | IIS (but reproductible in apache) | ||||
PHP Version | not releavant (tested in 7.2, reproduce in 5.6) | ||||
LimeSurvey: master 91a5cef6 2018-10-03 10:18
Committer: GitHub Details Diff |
Fixed issue 14125: DB user with insufficient right can show white page when installing (#1133) Dev: fix double encoding of arrays of errors Dev: trace is really not needed (Yii part) Dev: didn't test with command install : create-database throw CHttpException (didn't update it) |
Affected Issues 14125 |
|
mod - application/controllers/InstallerController.php | Diff File | ||
mod - application/views/installer/dbconfig_view.php | Diff File | ||
mod - installer/create-database.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-10-02 17:31 | DenisChenu | New Issue | |
2018-10-02 17:31 | DenisChenu | Status | new => assigned |
2018-10-02 17:31 | DenisChenu | Assigned To | => DenisChenu |
2018-10-02 17:31 | DenisChenu | File Added: index.php.html | |
2018-10-03 08:18 |
|
Changeset attached | => LimeSurvey master 91a5cef6 |
2018-10-03 08:18 |
|
Note Added: 49223 | |
2018-10-03 08:18 |
|
Assigned To | DenisChenu => user70560 |
2018-10-03 08:18 |
|
Resolution | open => fixed |
2018-10-03 08:19 | DenisChenu | Assigned To | user70560 => DenisChenu |
2018-10-03 08:19 | DenisChenu | Status | assigned => resolved |
2018-10-03 08:19 | DenisChenu | Fixed in Version | => 3.14.x |
2019-04-30 09:10 | c_schmitz | Status | resolved => closed |